Line chart icon for sharing a Plotly chart or Jupyter notebook as a link
Guide

How to Share a Plotly Chart or Jupyter Notebook as a Link

Your interactive chart or notebook works on your machine. Your manager, client or professor has no Python, no Jupyter and no patience for installing either. Export it to HTML and send a link instead.

Short version: export to a single HTML file (fig.write_html() for Plotly, jupyter nbconvert --to html for notebooks), drop it on droply.so, and send the link. Zoom, hover and filters keep working, and nobody needs Python.

Plotly: export the chart

import plotly.express as px

fig = px.line(df, x="date", y="revenue", color="region")
fig.write_html("revenue.html")

By default the file includes the whole Plotly library (about 3–4 MB), so it works offline. To make a much smaller file that loads Plotly from a CDN, use:

fig.write_html("revenue.html", include_plotlyjs="cdn")

Either works on droply. The free plan allows 10 MB, so even the full version fits. Several charts? Write each to its own file and select them all in the upload box, or put them on one page with a small index.html.

Jupyter: export the notebook

From the command line:

jupyter nbconvert --to html analysis.ipynb
# hide the code and show only results:
jupyter nbconvert --to html --no-input analysis.ipynb

Or in JupyterLab: File → Save and Export Notebook As → HTML. In VS Code, open the notebook, click the … menu and choose Export, then HTML.

Plotly, Altair and Bokeh charts inside the notebook stay interactive in the export. Matplotlib charts become images, which is fine for a report.

Put it online

  1. Go to droply.so and drop the .html file in the upload box.
  2. Name it, e.g. q3-revenue.droply.page.
  3. Send the link. It opens in any browser, including on a phone.

When the data changes, re-run the export and update the project in your dashboard. The link stays the same, so a link pinned in Slack or a wiki always shows the latest numbers.

Keeping it private

  • Specific people: Email Protect (Pro plan) lets only the addresses or company domain you list in, e.g. @yourcompany.com. Viewers confirm with a code sent to their inbox.
  • Password: on the Plus plan (try it free for 7 days).
  • Out of search engines: projects on the free plan are never listed in search engines.

Why not GitHub Pages or nbviewer?

Both work if your notebook is in a public GitHub repo and you're happy with that. For a one-off report from private data, uploading one HTML file is faster and doesn't put your work in a public repository. There's a longer comparison in droply vs GitHub Pages.

Drop in your exported chart or notebook.

Upload an HTML file →