File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353
5454 - name : 🏗️ Modularize into production-ready Python package
5555 run : |
56- python modularize_tagged_nb.py jupylab_cli/src/pipeline_analyzer/jn_analyzer/resources/outputs/ $(basename $NOTEBOOK)
56+ python modularize_tagged_nb.py $(basename $NOTEBOOK)
5757
5858 - name : 📂 Copy data into the new ml_project folder
5959 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 path ." )
230+ parser = argparse .ArgumentParser (description = "Modularize a labeled Jupyter notebook by name ." )
231231 parser .add_argument (
232- "notebook_path " ,
232+ "notebook_name " ,
233233 type = str ,
234- help = "Original notebook path "
234+ help = "Original notebook name "
235235 )
236236 args = parser .parse_args ()
237237
238- notebook_path = args .notebook_path
238+ notebook_path = build_notebook_path ( args .notebook_name )
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