This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

IPython Notebook code reuse

Project Description

IPython notebook are great for development and visualzing data, however, in terms of code sharing and reusing they’re quite bad.

If you want to reuse your notebook as a program or import functionality into other modules, you have a problem. Yes, you can move your code into a separate module but then you loose then notebook interface and the ability to change it.

This package contains several utilities to reuse the code in your notebook without the need to export/convert it everytime.

To import a notebook into another module do the following:

import ipnb.importer import my_notebook

my_notebook.some_cool_method()

You can also run a notebook directly from the command line:

python -m ipnb.run /path/to/my_notebook.ipynb

Optionally specify ‘-s’ to print the source code to stderr before execution starts and ‘-d’ to debug the notebook. Currently the implementation will try to use PuDB and fallback to pdb

Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ipnb-0.1.0.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Jun 23, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting