Show HN: Datapane – A new way to build reports, dashboards, and apps in Python

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • datapane

    Build and share data reports in 100% Python

  • Hello HN! We’re Leo and Mandeep, founders of Datapane.

    We're building a way to create reports, dashboards, and web apps from your existing data using Python. Think of it as a combination of React and htmx, specifically designed for the Python data stack.

    Our GitHub is https://github.com/datapane/datapane and you can try building a report or app in ~2 minutes on Codespaces: https://try.datapane.com

    We started building Datapane at our previous start-up, where we struggled to deliver ML model results to clients. Much to our surprise, the data science took less time than repeatedly creating reports by copying and pasting plots into PowerPoint decks.

    It seemed absurd that we had to switch to PowerPoint or legacy BI tools like Tableau to share, and our initial goal was to programmatically generate reports using the datasets and plots we had in Python. To enable this, we started hacking on a Python-based UI framework for constructing HTML views from data-centric blocks – like plots, data tables, and layout components.

    You can export these to standalone HTML files, or host them as a web app on somewhere like GitHub Pages or Fly.io. We recently also added the ability to connect Python functions to forms and front-end events so you can build web apps which run backend code. We handle the entire network and RPC layer, so you only need to write plain Python functions that take parameters and return other blocks.

    You can check out an example of the code to create a simple app: https://github.com/datapane/examples/blob/main/apps/iris-plotter/app.py

    Datapane’s philosophy is pretty different from other products in the space.

    We wanted to keep things simple, but avoid the footguns our users faced with frameworks like Streamlit, where the reactive/network-aware model was hard to move beyond an MVP or POC. For backend interactivity, we believe the original web got a lot right, and unlike reactive models which rely on websockets, Datapane is unashamedly request/response. This takes inspiration from HTTP and our own experiences with htmx, which offers an elegant way to add interactivity to HTML. Under the hood, we actually compile down to a (gasp!) XML-based hypermedia format, akin to HTML, but tailored specifically for constructing data UIs.

    The result is that not every change in your app requires a server round trip, as much of it can be pre rendered and most interactivity happens on the client-side. In addition to improving performance, this also makes running in production become 10x simpler.

    This separation between the view and backend compute also makes Datapane modular. If our app server isn’t a good fit for your use-case, serve Datapane views from the web-framework of your choice (we’ve been hacking on serving views from Django). Want to compute blocks from inside Airflow or generate them on a schedule or from a webhook? Computation can happen out of band of the UI. You can even build and host apps from inside of Jupyter, where you can preview blocks live and convert notebook cells to blocks in your view.

    We currently offer a hosting platform on https://datapane.com for sharing reports publicly (free) or with your team (paid), and will be adding serverless app hosting support to it in the next few weeks.

    Our ultimate goal is to create an open-source toolkit for building data products across the entire stack – from reports, to dashboards, to full-stack apps – all using 100% Python. You can see a few we’ve built already in our gallery: https://datapane.com/gallery

    We’d love to hear your feedback.

    Thanks!

  • examples

    Discontinued Datapane Examples (by datapane)

  • Hello HN! We’re Leo and Mandeep, founders of Datapane.

    We're building a way to create reports, dashboards, and web apps from your existing data using Python. Think of it as a combination of React and htmx, specifically designed for the Python data stack.

    Our GitHub is https://github.com/datapane/datapane and you can try building a report or app in ~2 minutes on Codespaces: https://try.datapane.com

    We started building Datapane at our previous start-up, where we struggled to deliver ML model results to clients. Much to our surprise, the data science took less time than repeatedly creating reports by copying and pasting plots into PowerPoint decks.

    It seemed absurd that we had to switch to PowerPoint or legacy BI tools like Tableau to share, and our initial goal was to programmatically generate reports using the datasets and plots we had in Python. To enable this, we started hacking on a Python-based UI framework for constructing HTML views from data-centric blocks – like plots, data tables, and layout components.

    You can export these to standalone HTML files, or host them as a web app on somewhere like GitHub Pages or Fly.io. We recently also added the ability to connect Python functions to forms and front-end events so you can build web apps which run backend code. We handle the entire network and RPC layer, so you only need to write plain Python functions that take parameters and return other blocks.

    You can check out an example of the code to create a simple app: https://github.com/datapane/examples/blob/main/apps/iris-plotter/app.py

    Datapane’s philosophy is pretty different from other products in the space.

    We wanted to keep things simple, but avoid the footguns our users faced with frameworks like Streamlit, where the reactive/network-aware model was hard to move beyond an MVP or POC. For backend interactivity, we believe the original web got a lot right, and unlike reactive models which rely on websockets, Datapane is unashamedly request/response. This takes inspiration from HTTP and our own experiences with htmx, which offers an elegant way to add interactivity to HTML. Under the hood, we actually compile down to a (gasp!) XML-based hypermedia format, akin to HTML, but tailored specifically for constructing data UIs.

    The result is that not every change in your app requires a server round trip, as much of it can be pre rendered and most interactivity happens on the client-side. In addition to improving performance, this also makes running in production become 10x simpler.

    This separation between the view and backend compute also makes Datapane modular. If our app server isn’t a good fit for your use-case, serve Datapane views from the web-framework of your choice (we’ve been hacking on serving views from Django). Want to compute blocks from inside Airflow or generate them on a schedule or from a webhook? Computation can happen out of band of the UI. You can even build and host apps from inside of Jupyter, where you can preview blocks live and convert notebook cells to blocks in your view.

    We currently offer a hosting platform on https://datapane.com for sharing reports publicly (free) or with your team (paid), and will be adding serverless app hosting support to it in the next few weeks.

    Our ultimate goal is to create an open-source toolkit for building data products across the entire stack – from reports, to dashboards, to full-stack apps – all using 100% Python. You can see a few we’ve built already in our gallery: https://datapane.com/gallery

    We’d love to hear your feedback.

    Thanks!

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • components

    Discontinued Datapane Reusable Components library (by datapane)

  • Thanks for the feedback. Regarding creating plots from SQL, we were just talking about that internally. It's a really interesting idea and something we have used ourselves in django-sql-explorer (https://django-sql-explorer.readthedocs.io/en/latest/feature...)

    We have a set of components (https://github.com/datapane/components) and can look at something for autoplotting from a query. Similarly, we recently built a component to automatically create vega-lite plots from datasets using ChatGPT, which is another approach that works well (if interested, I can write up as a blogpost).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts