Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Dumps marked code cells from a Jupyter notebook into a text file.

Project description

Dumps marked code cells from a Jupyter notebook into a text file.


  • Reads a Jupyter Notebook and export marked code cells with the comment #~ to a single .py file.
  • Exports cells marked with custom comments.
  • Exports a list of cells into a single file (useful to export markdown cells as a file)




import nb2py

Notes: check that you saved your notebook before you use dump to see the changes!

For examples, check the tutorial.


Created by Hugo Guillen, 2017.

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
nb2py-0.1.6.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page