This release is a pre-release and may not be stable for production use.
nbconvert
Jupyter Notebook Conversion
The nbconvert tool, jupyter nbconvert, converts notebooks to various other
formats via Jinja templates. The nbconvert tool allows you to convert an
.ipynb notebook file into various static formats including:
- HTML
- LaTeX
- Reveal JS
- Markdown (md)
- ReStructured Text (rst)
- executable script
Usage
From the command line, use nbconvert to convert a Jupyter notebook (input) to a a different format (output). The basic command structure is:
$ jupyter nbconvert --to <output format> <input notebook>
where <output format> is the desired output format and <input notebook> is the
filename of the Jupyter notebook.
Example: Convert a notebook to HTML
Convert Jupyter notebook file, mynotebook.ipynb, to HTML using:
$ jupyter nbconvert --to html mynotebook.ipynb
This command creates an HTML output file named mynotebook.html.
Dev Install
Check if pandoc is installed (pandoc --version); if needed, install:
sudo apt-get install pandoc
Or
brew install pandoc
Install nbconvert for development using:
git clone https://github.com/jupyter/nbconvert.git
cd nbconvert
pip install -e .
Running the tests after a dev install above:
pip install nbconvert[test]
py.test --pyargs nbconvert
Resources
Release files for nbconvert 6.0.0a6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nbconvert-6.0.0a6.tar.gz | 989.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nbconvert-6.0.0a6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:1.6 MB
Release files / nbconvert-6.0.0a6.tar.gz
| Download URL | nbconvert-6.0.0a6.tar.gz |
|---|---|
| Size | 989.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a87482bb95324739f4e3224b9695d7809998aad59bf3c9500b751b50a3ec195
|
|
BLAKE2b-256 checksum How to use checksums |
04cd62fbd154ace04f2317246913ef8dc3e4f1db740d62c518e1f7506042815e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
|
Release files / nbconvert-6.0.0a6-py3-none-any.whl
| Download URL | nbconvert-6.0.0a6-py3-none-any.whl |
|---|---|
| Size | 592.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d744ac10b8650b1b136290393e05e35da536d09cb37bc1d5376c19275fd3abdf
|
|
BLAKE2b-256 checksum How to use checksums |
36fcba5e7e7bce669e5f0b01c0b50ec7cfe356d78e37a715c042fb263d8eba19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
|