aerosandbox.tools.python.io
#
Module Contents#
Functions#
|
Reads an input Jupyter notebook (.ipynb) and converts it to a Python file (.py) |
- aerosandbox.tools.python.io.convert_ipynb_to_py(input_file, output_file)[source]#
Reads an input Jupyter notebook (.ipynb) and converts it to a Python file (.py)
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