Skip to content
The coolest way to turn a Jupyter Notebook into sharable stuff.
Jupyter Notebook Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
docs
notebooktoall
tests
.editorconfig
.gitignore
.travis.yml
AUTHORS.rst
CODE_OF_CONDUCT.md
CONTRIBUTING.rst
HISTORY.rst
LICENSE
MANIFEST.in
Makefile
README.md
README.rst
my_tst.ipynb
readthedocs.yml
requirements_dev.txt
setup.cfg
setup.py
tox.ini

README.md

Build Status latest wheel Coverage Status Documentation Status Updates license versions

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

from notebooktoall.transform import transform_notebook

transform_notebook(ipynb_file="my_jupyter_notebook.ipynb", export_list=["html", "py"])

Run your code and an .html file and an executable .py file will appear in your current working directory. Use and share!

Ensure your Jupyter notebook doesn't have magic commands in it if you want to create an executable .py script.

You can also pass the URL of a Jupyter notebook to transform_notebook().

See the full docs at ReadTheDocs.

You can’t perform that action at this time.