Publishing and Sharing

This feature requires use of the free Datapane Public hosted platform or a private Datapane for Teams instance

Publish your report

So far we've demonstrated how to build and view reports locally; however, one of the most powerful features of Datapane is the ability to publish your report straight from your code and share it directly with your team or the wider world.

Once you've logged in to your chosen Datapane server, call publish(name='your-report-name') in your script and your report will be published to your Datapane instance for viewing online. This will return the URL of the report that you can share.

If we take the report from the previous example, all we need to do is change .save to .publish and choose a name for our report.
import pandas as pd
import altair as alt
import datapane as dp
dataset = pd.read_csv('')
df = dataset.groupby(['continent', 'date'])['new_cases_smoothed_per_million'].mean().reset_index()
plot = alt.Chart(df).mark_area(opacity=0.4, stroke='black').encode(
y=alt.Y('new_cases_smoothed_per_million:Q', stack=None),
color=alt.Color('continent:N', scale=alt.Scale(scheme='set1')),
).publish(name='covid_report', open=True)

Once published, you can share the link with others.


Reports published to Datapane Public and Datapane for Teams are versioned. If you publish a report with the same name as a previous report, it will increment the version. Using the Datapane web UI, you can view previous versions of reports.

In the next section, we will explore how to embed your report into a range of other platforms.