NotebookToAll¶
The coolest way to turn a Jupyter Notebook into sharable files.
Turn your Jupyter Notebook into a .py executable file and an .html file with a one-line command. You can create both or either file type at the same time! Under the hood, this package uses Jupyter nbconvert.
nbconvert is great for command line transformations, but it takes a bit of work to use in a program. NotebookToAll to the rescue.
Quick Start¶
Install¶
Install from PyPI.
pip install notebooktoall
Use¶
Make sure your notebook doesn’t have magic commands in it if you want to create an executable .py script.:
from notebooktoall.transform import transform_notebook
transform_notebook(ipynb_file="my_jupyter_notebook.ipynb", export_list=["html", "py"])
Run your code and your .html and .py files should appear in your current working directory.
You can pass a Jupyter notebook URL to transform_notebook().
License¶
Free software: GNU General Public License v3
Docs¶
Documentation: https://notebooktoall.readthedocs.io.
Credits:¶
The Cookiecutter audreyr/cookiecutter-pypackage project template.