aerosandbox.tools.python.io
Functions
convert_ipynb_to_py(input_file, output_file) | Reads an input Jupyter notebook (.ipynb) and converts it to a Python file (.py) |
Module Contents
aerosandbox.tools.python.io.convert_ipynb_to_py(input_file, output_file) : Reads an input Jupyter notebook (.ipynb) and converts it to a Python file (.py)
code
Tried using jupyter nbconvert, but that is SO SLOW, like 3 seconds per notebook! It’s just json parsing,
this should *not* take more than a few milliseconds - come on, Jupyter!
Parameters:
: - **input\_file** (*pathlib.Path*) – File path
- **output\_file** (*pathlib.Path*) – File path
Return type:
: None
Returns: None