Skip to main content

Plotly friendly, Jupyter Notebook HTML Exporter.

NBConvert is a module to convert Jupyter Notebooks to other formats (pdf, html etc.). It supplies HTMLExporter which is used to convert Jupyter Notebooks to html.

PlotlyHTMLExporter is a custom Exporter derived from HTMLExporter. It sanitizes the JS/HTML present in output cells, but keeps the trusted plotly.js output intact, thus allowing the plotly charts to be rendered in the resulting html.

Installation:

Using pip:

$ pip install plotlyhtmlexporter

From Source:

$ git clone https://github.com/plotly/plotlyhtmlexporter
$ cd plotlyhtmlexporter
$ python setup.py install

Usage:

From Command Line (with NBConvert):

$ jupyter nbconvert --to plotlyhtml mynotebook.ipynb

From the Python interpreter:

>>> import nbformat
>>> nb = nbformat.read('mynotebook.ipynb', 4)
>>> from plotlyhtmlexporter import PlotlyHTMLExporter
>>> exp = PlotlyHTMLExporter()
>>> body, resources = exp.from_notebook_node(nb)

License: MIT

Download files

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

Source Distribution

plotlyhtmlexporter-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file plotlyhtmlexporter-0.0.2.tar.gz.

File metadata

File hashes

Hashes for plotlyhtmlexporter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 73b3db67acc02f2197c0ee6eb821eec854065b4aa8ae50b66d066fa8acb1e240
MD5 6a44965d730cca3cc52d0c6642c8fc3d
BLAKE2b-256 92e944981245c2977d68b6c3262090d84fc2f5335141483f179ead76c879fcfa

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page