Coder Social home page Coder Social logo

babyblue26 / 4notionie Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datapane/datapane

0.0 0.0 0.0 49.78 MB

Build full-stack data apps in 100% Python

Home Page: https://datapane.com

License: Apache License 2.0

Shell 0.19% JavaScript 7.66% Python 54.94% TypeScript 11.89% XSLT 0.12% CSS 0.31% HTML 3.36% Vue 8.26% Jupyter Notebook 12.15% SCSS 1.12%

4notionie's Introduction

Datapane

Home | Docs | Gallery | Examples | Discuss

GitHub Stars Pip Downloads Latest release Conda (channel only)

Build full-stack data apps in 100% Python

Datapane is an app development platform which gives you everything you need to build internal data analytics products using Python.

Progress & Roadmap

  • Blocks & Views
    • Display blocks
    • Layout blocks
    • Static site export
  • App server
    • Backend functions
    • Forms
    • Client-side events (e.g. onload)
    • Caching
    • Sessions
  • Reports
    • HTML reports
    • Cloud reports
  • Deployment
    • Fly.io
    • Dockerfile generation
  • Components library
  • Tasks
    • Scheduled tasks
    • Background tasks
  • Data layer
    • Files
    • Analytics DB (DuckDB)
    • App state DB (sqlite)
  • Integrations & Messaging
    • Slack
    • Email
    • Webhooks

Why use Datapane?

๐Ÿ 100% Python

Build apps and reporting tools without writing HTML, CSS, or worrying about infrastructure.

๐Ÿ”‹ Batteries included

Not just for demos and MVPs. Build products with background processing, integrations, reporting, and more.

๐Ÿš€ Simple to host

Deploy to any web host, run on your own server, or embed into existing frameworks like Flask and Django.

Gallery

Check out example reports and apps in our gallery:

https://datapane.com/gallery

How is Datapane's architecture unique?

Datapane Apps use a combination of pre-rendered frontend elements and backend Python functions which are called on-demand. Result: low-latency apps which are simple to build, host, and scale.

Getting Started

Check out our Quickstart to build a data science web app 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")

Add functions to create full-stack apps

Add forms which run backend functions, or refresh your app automatically to build dashboards. Serve locally or deploy to your favorite web-host.

Functions

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

df = data.iris()

def gen_assets(params):
    subset = df[df['species'] == params['species']]

    fig = alt.Chart(subset)
            .mark_point()
            .encode( x="petalLength:Q", y="petalWidth:Q")

    return [dp.Plot(fig), dp.DataTable(subset)]

view = dp.Form(
    on_submit=gen_assets,
    controls=dp.Controls(
      species=dp.Choice(options=list(df['species'].unique())
    )
)

dp.serve_app(view)

Get involved

Forums

Leave us some feedback, get help, ask questions and request features.

๐Ÿ“œ Ask a question

Contribute

Looking for ways to contribute to Datapane?

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.

4notionie's People

Contributors

ajgilmour avatar antdking avatar buroni avatar datapane-ci-bot avatar dependabot[bot] avatar lanthias avatar mallok-s avatar mands avatar radiac avatar shahinrostami avatar spookylukey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.