pdessauw / notebook2script

A simple-minded converter to extract Jupyter notebook code into a Python script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notebook2script

A simple-minded converter to extract Jupyter notebook code into a Python script. Make sure the Python version used is >=3.9.

Usage

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.

About

A simple-minded converter to extract Jupyter notebook code into a Python script

License:MIT License


Languages

Language:Python 100.0%