Run IPython notebooks from the command line
Project description
The IPython notebook provides an interactive interface to a Python interpreter.
Literate programming: the IPython notebook is an ideal format for writing “literate” programs, in which the code is part of a larger multi-media document. runipy lets you run such programs directly, without first converting to a pure Python script.
Report generation: runipy can run the notebook and convert it into HTML in one go, making it an easy way to automate reports when aesthetic control is not a priority.
Data pipeline: if you use IPython notebooks to create a data pipeline, runipy lets you automate that pipeline without loosing the notebook formatting.
Installation
The easiest way to install runipy is with pip:
$ pip install runipy
Use
To run a .ipynb file as a script, run:
$ runipy MyNotebook.ipynb
To save the output of each cell back to the notebook file, run:
$ runipy -o MyNotebook.ipynb
To save the notebook output as a new notebook, run:
$ runipy MyNotebook.ipynb OutputNotebook.ipynb
To run a .ipynb file and genereate an HTML report, run:
$ runipy MyNotebook.ipynb --html report.html
Credit
Portions of the code are based on code by Min RK
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file runipy-0.0.1.tar.gz
.
File metadata
- Download URL: runipy-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 333f4974daa43203e4d0ec4c2486f51d800f9954f5e7ec08d2409ce4863b470a |
|
MD5 | 6f966b487344d3adaf6a4a7b7c3efccf |
|
BLAKE2b-256 | 806ceb7648f0753b053a1ef3cf15f8cdfa3336316b910de26825aa3c6c26deaa |