A simple-minded converter to extract Jupyter notebook code into a Python script. Make sure the Python version used is >=3.9.
To convert a notebook, use the following command:
python convert.py ${path_to_notebook} --output ${path_to_script}
If the output seems too messy, try with --reformat
option:
python convert.py ${path_to_notebook} --output ${path_to_script} --reformat
N.B.: This option is EXPERIMENTAL, do not expect a lot out of it.