Skip to content

Commit a0a8688

Browse files
committed
correct paths
1 parent f5cf0ae commit a0a8688

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/AutoModularize.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ jobs:
4141
4242
- name: 🧪 Prepare notebook for classification
4343
run: |
44-
cd jupylab_cli
45-
mkdir -p src/pipeline_analyzer/jn_analyzer/resources/{inputs,outputs,backups}
46-
cp $NOTEBOOK src/pipeline_analyzer/jn_analyzer/resources/inputs/
47-
jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace src/pipeline_analyzer/jn_analyzer/resources/inputs/$(basename $NOTEBOOK)
44+
mkdir -p jupylab_cli/src/pipeline_analyzer/jn_analyzer/resources/{inputs,outputs,backups}
45+
cp $NOTEBOOK jupylab_cli/src/pipeline_analyzer/jn_analyzer/resources/inputs/
46+
jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace jupylab_cli/src/pipeline_analyzer/jn_analyzer/resources/inputs/$(basename $NOTEBOOK)
4847
4948
- name: 🏷️ Classify notebook cells
5049
run: |

modularize_tagged_nb.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,15 @@ def build_notebook_path(notebook_name: str) -> Path:
227227
return BASE_DIR / labeled_name
228228

229229
if __name__ == "__main__":
230-
parser = argparse.ArgumentParser(description="Modularize a labeled Jupyter notebook by name.")
230+
parser = argparse.ArgumentParser(description="Modularize a labeled Jupyter notebook by path.")
231231
parser.add_argument(
232-
"notebook_name",
232+
"notebook_path",
233233
type=str,
234-
help="Original notebook name"
234+
help="Original notebook path"
235235
)
236236
args = parser.parse_args()
237237

238-
notebook_path = build_notebook_path(args.notebook_name)
238+
notebook_path = args.notebook_path
239239

240240
if not notebook_path.exists():
241241
print(f"❌ Error: Notebook file '{notebook_path}' does not exist.")

0 commit comments

Comments
 (0)