Skip to main content

Datapane client library and CLI tool

Project description

Datapane

Home | Docs | Gallery | Examples | Discuss

GitHub Stars Pip Downloads Latest release Conda (channel only)

Build interactive reports in seconds using Python.

Datapane makes it simple to build interactive reports in seconds using Python.

Import Datapane's Python library into your script or notebook and build reports programmatically by wrapping components such as:

  • Pandas DataFrames
  • Plots from Python visualization libraries such as Bokeh, Altair, Plotly, and Folium
  • Markdown and text
  • Files, such as images, PDFs, JSON data, etc.
  • Interactive forms which run backend Python functions

Datapane reports are interactive and can also contain pages, tabs, drop downs, and more. Once created, reports can be exported as HTML, shared as standalone files, or embedded into your own application, where your viewers can interact with your data and visualizations.

Gallery

Check out example reports in our gallery and view their source:

Getting Started

Check out our Quickstart to build a report in 3m.

Installing Datapane

The best way to install Datapane is through pip or conda.

pip

$ pip3 install -U datapane

conda

$ conda install -c conda-forge "datapane>=0.16.1"

Datapane also works well in hosted Jupyter environments such as Colab or Binder, where you can install as follows:

!pip3 install --quiet datapane

Examples

📊 Share plots, data, and more as reports

Create reports from pandas DataFrames, plots from your favorite libraries, and text.

Simple Datapane app example with text, plot and table

import altair as alt
from vega_datasets import data
import datapane as dp

df = data.iris()
fig = (
    alt.Chart(df)
    .mark_point()
    .encode(
        x="petalLength:Q",
        y="petalWidth:Q",
        color="species:N"
    )
)
view = dp.Blocks(
    dp.Plot(fig),
    dp.DataTable(df)
)
dp.save_report(view, path="my_app.html")

🎛 Layout using interactive blocks

Add dropdowns, selects, grid, pages, and 10+ other interactive blocks.

Complex layout

...

view = dp.Blocks(
    dp.Formula("x^2 + y^2 = z^2"),
    dp.Group(
        dp.BigNumber(
            heading="Number of percentage points",
            value="84%",
            change="2%",
            is_upward_change=True
        ),
        dp.BigNumber(
            heading="Simple Statistic", value=100
        ), columns=2
    ),
    dp.Select(
        dp.Plot(fig, label="Chart"),
        dp.DataTable(df, label="Data")
    ),
)
dp.save_report(view, path="layout_example.html")

Next Steps

Analytics

By default, the Datapane Python library collects error reports and usage telemetry. This is used by us to help make the product better and to fix bugs. If you would like to disable this, simply create a file called no_analytics in your datapane config directory, e.g.

Linux

$ mkdir -p ~/.config/datapane && touch ~/.config/datapane/no_analytics

macOS

$ mkdir -p ~/Library/Application\ Support/datapane && touch ~/Library/Application\ Support/datapane/no_analytics

Windows (PowerShell)

PS> mkdir ~/AppData/Roaming/datapane -ea 0
PS> ni ~/AppData/Roaming/datapane/no_analytics -ea 0

You may need to try ~/AppData/Local instead of ~/AppData/Roaming on certain Windows configurations depending on the type of your user-account.

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

datapane-0.16.6.tar.gz (185.7 kB view details)

Uploaded Source

Built Distribution

datapane-0.16.6-py3-none-any.whl (224.7 kB view details)

Uploaded Python 3

File details

Details for the file datapane-0.16.6.tar.gz.

File metadata

  • Download URL: datapane-0.16.6.tar.gz
  • Upload date:
  • Size: 185.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.12 Linux/5.15.0-1041-azure

File hashes

Hashes for datapane-0.16.6.tar.gz
Algorithm Hash digest
SHA256 e23b6efe64d70b59a4c4083461479409bb48f0a0bfcec9b74d4a0ced853c7622
MD5 3be18e7e634eab43c7fe5904d6773eb8
BLAKE2b-256 0f176381bba9264733116dd5b0bb3b9a0fdc8fc5d62b216c22e4e3cb2c531d57

See more details on using hashes here.

File details

Details for the file datapane-0.16.6-py3-none-any.whl.

File metadata

  • Download URL: datapane-0.16.6-py3-none-any.whl
  • Upload date:
  • Size: 224.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.12 Linux/5.15.0-1041-azure

File hashes

Hashes for datapane-0.16.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2f49690fe750fa75ad3eb94c6d163ac286b5581a393c8926234398a5a5b51353
MD5 6801242924b26779fa93befab69feb8d
BLAKE2b-256 c8d34b3f659fdbf98ab60b7c49ee75f4327bc4ae5e2e1fe0e149cb8b5c44859f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page