Skip to main content

Datapane client library and CLI tool

Project description

Datapane

Datapane.com | Docs | Examples | Forums | Discord

Pip Downloads Latest release Conda (channel only)

Build interactive reports in 3 lines of Python

Datapane is an open-source framework makes it easy to create beautiful reports from anywhere you can run Python. Love analyzing data in Python but struggle to share results and insights? Datapane is for you!


What makes Datapane special?

  • Static generation: Sharing a report shouldn't require deploying an app. Render a standalone HTML bundle which you can share or host on the web.
  • API-first and programmatic: Programmatically generate reports from inside of Spark, Airflow, or Jupyter. Schedule updates to build real-time dashboards.
  • Dynamic front-end components: Say goodbye to writing HTML. Build reports from a set of interactive components, like DataTables, tabs, and selects.

Getting Started

Want a head start? Check out our Datapane in 3 minutes video:

https://user-images.githubusercontent.com/15690380/179759362-e577a4f8-d1b7-4b8d-9190-0c13d5015728.mp4

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.15.1"

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

!pip3 install --quiet datapane

Creating reports

📊 Include plots and data

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

Simple Datapane report 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"
    )
)
report = dp.Report(
    dp.Plot(fig),
    dp.DataTable(df)
)
report.save(path="my_report.html")

🎛 Layout using interactive blocks

Add dropdowns, selects, grid, pages, and 10+ other blocks to make your reports dynamic.

Complex layout

...

dp.Report(
    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")
    ),
).save(path="Layout_example.html")




Get involved

Discord

Our Discord community is for people who believe that insights, visualizations, and reports are better created with Python instead of drag-and-drop tools. Get help from the team, share what you're building, and get to know others in the space!

💬 Join our discord server

Forums

Got feature requests, feedback, or questions? Visit our Forum.

📮 Join our forum

Hosting Reports

In addition to saving documents locally or hosting them yourself, you can host and share your reports using Datapane Cloud.

To get your API key, create a free account.

Next, in your Python notebook or script, change the save function to upload:

dp.Report(
 ...
#).save(path="hello_world.html")
).upload(name="Hello world")

Demos and Examples

Here a few samples of the top reports created by the Datapane community.

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\ Data/datapane && touch ~/Library/Application\ Data/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.15.2.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

datapane-0.15.2-py3-none-any.whl (3.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datapane-0.15.2.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-1019-azure

File hashes

Hashes for datapane-0.15.2.tar.gz
Algorithm Hash digest
SHA256 2318a04e819acad7a373e8ec7f8ab3bb35930fac3c395198ad05052e8fba79d8
MD5 e8edffc06365886fbc4cfe7ce4dbb6a5
BLAKE2b-256 3f27003733b9762c545d6aa62fcdfa91b11f726cdce600aad83ba70f320eddee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datapane-0.15.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-1019-azure

File hashes

Hashes for datapane-0.15.2-py3-none-any.whl
Algorithm Hash digest
SHA256 739d224c85b3dada82ad9d31903daa3c483cab8a0c47faca0de9dfaaa50e7bfb
MD5 6a0acc884f6d2d1daff356013c229cef
BLAKE2b-256 9c814e812f720004e876714b6c7c7c6352b059f28c2f2ed6a43062af724d3f49

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