File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff line change @@ -227,15 +227,15 @@ def build_notebook_path(notebook_name: str) -> Path:
227227 return BASE_DIR / labeled_name
228228
229229if __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." )
You can’t perform that action at this time.
0 commit comments