# Python dashboard libraries

Python dashboard libraries build interactive web apps with charts, tables, and input widgets from Python code. The library serves a browser front end and runs Python code again when a user changes an input. These libraries let data teams share models and analyses as web apps without writing JavaScript.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [Streamlit](#streamlit) | 23.9M | 46.4K | Nov 2026 | Apache-2.0 |
| [Dash](#dash) | 8.2M | 24.5K | Oct 2026 | MIT |
| [Bokeh](#bokeh) | 6.5M | 20.5K | Nov 2026 | BSD-3-Clause |
| [Gradio](#gradio) | 6.3M | 44.1K | Nov 2026 | Apache-2.0 |
| [NiceGUI](#nicegui) | 1.3M | 16.3K | Nov 2026 | MIT |
| [Panel](#panel) | 1.2M | 5.8K | Oct 2026 | BSD-3-Clause |
| [Shiny for Python](#shiny) | 314.0K | 1.8K | Oct 2026 | MIT |
| [Reflex](#reflex) | 287.7K | 29.0K | Nov 2026 | Apache-2.0 |

Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[Streamlit](#streamlit) has the most monthly downloads in this comparison, at 23.9M.

## Capabilities

| Library | Plotly figure display | Inline notebook apps |
| --- | --- | --- |
| [Streamlit](#streamlit) | Yes | No |
| [Dash](#dash) | Yes | Yes |
| [Bokeh](#bokeh) | No | Yes |
| [Gradio](#gradio) | Yes | Yes |
| [NiceGUI](#nicegui) | Yes | Undocumented |
| [Panel](#panel) | Yes | Yes |
| [Shiny for Python](#shiny) | Via plugin | Undocumented |
| [Reflex](#reflex) | Yes | Undocumented |

## Libraries

### Streamlit

[GitHub](https://github.com/streamlit/streamlit) · [PyPI](https://pypi.org/project/streamlit) · [Docs](https://docs.streamlit.io/)

Builds interactive data applications from Python scripts.

- Downloads / mo: 23.9M
- Stars: 46.4K
- Last release: 1.67.0
- License: Apache-2.0
- Capabilities: [From the Streamlit docs](https://docs.streamlit.io/)

**Strengths**

- **Builds interfaces from Python scripts.** Add interactive data tables, charts, and controls to a Python script.
- **Caches reusable data and resources.** Keep expensive results or shared resource objects across script reruns.
- **Includes dataframe CSV downloads.** Let users export the displayed data table as CSV.

**Watch out for**

- **Interactions can rerun the script.** Cache expensive work when default full-script reruns repeat too much computation.
- **Shared resources need thread safety.** Keep globally cached clients and models thread safe across concurrent user sessions.

```sh
pip install streamlit
```

**langchain-ai/streamlit-agent** (1.6K stars)

[langchain-ai/streamlit-agent](https://github.com/langchain-ai/streamlit-agent) 

```python
@st.cache_data(ttl="2h")
def load_data(uploaded_file):
    try:
        ext = os.path.splitext(uploaded_file.name)[1][1:].lower()
    except:
        ext = uploaded_file.split(".")[-1]
    if ext in file_formats:
        return file_formats[ext](uploaded_file)
    else:
        st.error(f"Unsupported file format: {ext}")
        return None
```

[streamlit_agent/chat_pandas_df.py](https://github.com/langchain-ai/streamlit-agent/blob/634e1cecf23d7ca3a4c5e708944673e057765b2a/streamlit_agent/chat_pandas_df.py#L27-L37) · [More projects using Streamlit →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20streamlit%20for%20cached%20file%20loading%2C%20dashboard%20filters%2C%20resizable%20data%20views%20and%20model-parameter%20controls&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import streamlit as st

x = st.slider("Select a value")
st.write(x, "squared is", x * x)

```

From [README.md](https://pypi.org/pypi/streamlit/1.67.0/json#info.description)

### Dash

[GitHub](https://github.com/plotly/dash) · [PyPI](https://pypi.org/project/dash) · [Docs](https://dash.plotly.com)

Builds reactive Python web applications with explicit component callbacks.

- Downloads / mo: 8.2M
- Stars: 24.5K
- Last release: 4.5.0
- License: MIT
- Capabilities: [From the Dash docs](https://dash.plotly.com)

**Strengths**

- **Connects controls with explicit callbacks.** Map component inputs to the outputs a Python function should update.
- **Includes Plotly graph components.** Display Plotly-powered charts through the bundled Graph component.

**Watch out for**

- **Legacy DataTable is deprecated.** Use Dash AG Grid for new editable table interfaces.
- **Worker memory stays separate.** Store shared callback state outside mutable process-local global variables.

```sh
pip install dash
```

**plotly/dash-sample-apps** (3.3K stars)

[plotly/dash-sample-apps](https://github.com/plotly/dash-sample-apps) 

```python
def generate_control_card():
    """

    :return: A Div containing controls for graphs.
    """
    return html.Div(
        id="control-card",
        children=[
            html.P("Select Clinic"),
            dcc.Dropdown(
                id="clinic-select",
                options=[{"label": i, "value": i} for i in clinic_list],
                value=clinic_list[0],
            ),
            html.Br(),
            html.P("Select Check-In Time"),
            dcc.DatePickerRange(
                id="date-picker-select",
                start_date=dt(2014, 1, 1),
                end_date=dt(2014, 1, 15),
                min_date_allowed=dt(2014, 1, 1),
                max_date_allowed=dt(2014, 12, 31),
                initial_visible_month=dt(2014, 1, 1),
            ),
            html.Br(),
            html.Br(),
            html.P("Select Admit Source"),
            dcc.Dropdown(
                id="admit-select",
                options=[{"label": i, "value": i} for i in admit_list],
                value=admit_list[:],
                multi=True,
            ),
            html.Br(),
            # html.Div(
            #     id="reset-btn-outer",
            #     children=html.Button(id="reset-btn", children="Reset", n_clicks=0),
            # ),
        ],
    )
```

[apps/dash-clinical-analytics/app.py](https://github.com/plotly/dash-sample-apps/blob/ebabf377d3be3d08752d53dfd04d1a59d7d164f1/apps/dash-clinical-analytics/app.py#L86-L125) · [More projects using Dash →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20dash%20for%20cached%20file%20loading%2C%20dashboard%20filters%2C%20resizable%20data%20views%20and%20model-parameter%20controls&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from dash import Dash, html
app = Dash()
app.layout = html.Div('Hello, Dash!')
app.run()

```

From [minimal-app.md](https://dash.plotly.com/minimal-app)

### Bokeh

[GitHub](https://github.com/bokeh/bokeh) · [PyPI](https://pypi.org/project/bokeh) · [Docs](https://docs.bokeh.org)

Builds interactive plots and applications in the browser from Python.

- Downloads / mo: 6.5M
- Stars: 20.5K
- Last release: 3.10.2
- License: BSD-3-Clause
- Capabilities: [From the Bokeh docs](https://docs.bokeh.org)

```sh
pip install bokeh
```

**holoviz/panel** (5.8K stars)

[holoviz/panel](https://github.com/holoviz/panel) 

```python
def autoload_js_script(doc, resources, token, element_id, app_path, absolute_url, absolute=False):
    resources = Resources.from_bokeh(resources, absolute=absolute)
    bundle = bundle_resources(doc.roots, resources)

    render_items = [RenderItem(token=token, elementid=element_id, use_for_title=False)]
    bundle.add(Script(script_for_render_items({}, render_items, app_path=app_path, absolute_url=absolute_url)))

    return AUTOLOAD_JS.render(bundle=bundle, elementid=element_id)
```

[panel/io/server.py](https://github.com/holoviz/panel/blob/f8308d077e9836b00b39e8cca7e0a50d43e3d2bf/panel/io/server.py#L510-L517) · [More projects using Bokeh →](https://dashboard.exa.ai/playground/search?q=bokeh%20GitHub%20projects)

**Quickstart**

```python
from bokeh.plotting import figure, show
p = figure()
p.line([1, 2, 3], [1, 4, 9])
show(p)

```

From [README.md](https://docs.bokeh.org/en/latest/docs/first_steps/first_steps_1.html)

### Gradio

[GitHub](https://github.com/gradio-app/gradio) · [PyPI](https://pypi.org/project/gradio) · [Docs](https://pypi.org/project/gradio/)

Builds interfaces for interacting with trained machine learning models.

- Downloads / mo: 6.3M
- Stars: 44.1K
- Last release: 6.32.0
- License: Apache-2.0
- Capabilities: [From the Gradio docs](https://pypi.org/project/gradio/)

```sh
pip install gradio
```

**huggingface/smolagents** (30.5K stars)

[huggingface/smolagents](https://github.com/huggingface/smolagents) 

```python
def create_app(self):
        import gradio as gr

        # Gradio 5.x requires type="messages", but Gradio 6 removed this parameter
        type_messages_kwarg = {"type": "messages"} if gr.__version__.startswith("5") else {}

        chatbot = gr.Chatbot(
            label="Agent",
            avatar_images=(
                None,
                "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/smolagents/mascot_smol.png",
            ),
            latex_delimiters=[
                {"left": r"$$", "right": r"$$", "display": True},
                {"left": r"$", "right": r"$", "display": False},
                {"left": r"\[", "right": r"\]", "display": True},
                {"left": r"\(", "right": r"\)", "display": False},
            ],
            **type_messages_kwarg,
        )

        demo = gr.ChatInterface(
            fn=self._stream_response,
            chatbot=chatbot,
            title=self.name.replace("_", " ").capitalize(),
            multimodal=self.file_upload_folder is not None,
            save_history=True,
            **type_messages_kwarg,
        )
        return demo
```

[src/smolagents/gradio_ui.py](https://github.com/huggingface/smolagents/blob/2689e450364d451a0afa0a5e883d12a031c125dd/src/smolagents/gradio_ui.py#L432-L461) · [More projects using Gradio →](https://dashboard.exa.ai/playground/search?q=gradio%20GitHub%20projects)

**Quickstart**

```python
import gradio as gr

def greet(name, intensity):
 return "Hello, " + name + "!" * int(intensity)

demo = gr.Interface(
 fn=greet,
 inputs=["text", "slider"],
 outputs=["text"],
 api_name="predict"
)

demo.launch()

```

From [README.md](https://pypi.org/pypi/gradio/6.32.0/json#info.description)

### NiceGUI

[GitHub](https://github.com/zauberzeug/nicegui) · [PyPI](https://pypi.org/project/nicegui) · [Docs](https://nicegui.io/documentation)

Creates web-based user interfaces with Python.

- Downloads / mo: 1.3M
- Stars: 16.3K
- Last release: 4.0.0
- License: MIT
- Capabilities: [From the NiceGUI docs](https://nicegui.io/documentation)

```sh
pip install nicegui
```

**daya0576/beaverhabits** (1.9K stars)

[daya0576/beaverhabits](https://github.com/daya0576/beaverhabits) 

```python
async def settings_page(user: User):
    configs = await views.get_user_configs(user)

    async def update_custom_css(e):
        await views.update_custom_css(user, e.value)
        views.apply_theme_style()

    def toggle_dark_mode(value: bool):
        set_user_dark_mode(value)
        if value:
            ui.dark_mode().enable()
        else:
            ui.dark_mode().disable()

    with layout(title="Settings"):
        with ui.column().classes("w-[600px]"):
            # ui.label("Darkmode").classes("text-lg font-bold")
            # with ui.row():
            #     ui.button("Dark", on_click=lambda: toggle_dark_mode(True))
            #     ui.button("Light", on_click=lambda: toggle_dark_mode(False))

            ui.label("Custom CSS").classes("text-lg font-bold")
            editor = ui.codemirror(
                configs.custom_css or EDIT_ME, language="CSS", theme="githubDark"
            ).classes("h-96")
            editor.on_value_change(update_custom_css)

```

[beaverhabits/frontend/settings_page.py](https://github.com/daya0576/beaverhabits/blob/78b4cee1945387eca6bd8fad09d4226261a9fdd1/beaverhabits/frontend/settings_page.py#L16-L41) · [More projects using NiceGUI →](https://dashboard.exa.ai/playground/search?q=nicegui%20GitHub%20projects)

**Quickstart**

```python
from nicegui import ui

ui.label('Hello NiceGUI!')
ui.button('BUTTON', on_click=lambda: ui.notify('button was pressed'))

ui.run()

```

From [README.md](https://pypi.org/pypi/nicegui/4.0.0/json#info.description)

### Panel

[GitHub](https://github.com/holoviz/panel) · [PyPI](https://pypi.org/project/panel) · [Docs](https://pypi.org/project/panel/)

Builds interactive dashboards from Python widgets, plots, and layouts.

- Downloads / mo: 1.2M
- Stars: 5.8K
- Last release: 1.10.0
- License: BSD-3-Clause
- Capabilities: [From the Panel docs](https://pypi.org/project/panel/)

**Strengths**

- **Binds widgets to Python functions.** Update a displayed function result when its bound widget values change.
- **Saves standalone HTML snapshots.** Export an application snapshot without requiring an active application server.

**Watch out for**

- **Static interaction needs bounded state.** Embed predefined widget states when the exported page must work without Python.
- **PNG export needs browser dependencies.** Install the required browser export dependencies before saving a PNG snapshot.

```sh
pip install panel
```

**holoviz/lumen** (332 stars)

[holoviz/lumen](https://github.com/holoviz/lumen) 

```python
def _execute_pending_query_with(self, user_prompt, old_sources):
    """Execute a query after files have been uploaded."""
    # Remove views from widget
    with edit_readonly(self._chat_input):
        self._chat_input.param.update(
            value_input="",
            value_uploaded={},
            views=[],
        )

    # Build message with new sources info
    new_sources = [
        source for source in self.context.get("sources", [])
        if source not in old_sources
    ]
    source_names = [f"**{src.name}**: {', '.join(src.get_tables())}" for src in new_sources]
    source_view = Markdown(
        "Added sources:\n" + "\n".join(f"- {name}" for name in source_names),
        sizing_mode="stretch_width"
    ) if new_sources else None

    self._update_main_view()
    msg = Column(user_prompt, source_view) if source_view else user_prompt
    self.interface.send(msg, respond=True)
```

[lumen/ai/ui.py](https://github.com/holoviz/lumen/blob/91bcc5ab53c0ad1db5c708170f4a30580a9d2a26/lumen/ai/ui.py#L1016-L1039) · [More projects using Panel →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20panel%20for%20cached%20file%20loading%2C%20dashboard%20filters%2C%20resizable%20data%20views%20and%20model-parameter%20controls&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import panel as pn
pn.extension()
pn.pane.Markdown('Hello, Panel!').servable()

```

From [build_app.html](https://panel.holoviz.org/getting_started/build_app.html)

### Shiny for Python

[GitHub](https://github.com/posit-dev/py-shiny) · [PyPI](https://pypi.org/project/shiny) · [Docs](https://shiny.posit.co/py/)

Provides a web development framework for Python.

- Downloads / mo: 314.0K
- Stars: 1.8K
- Last release: 1.9.0
- License: MIT
- Capabilities: [From the Shiny for Python docs](https://shiny.posit.co/py/)

```sh
pip install shiny
```

**posit-dev/querychat** (213 stars)

[posit-dev/querychat](https://github.com/posit-dev/querychat) 

```python
def app_ui(request):
            drawer_children = [
                ui.card(
                    ui.card_header(
                        bs_icon("table"),
                        " Data — ",
                        ui.output_text("data_card_header_text", inline=True),
                    ),
                    ui.output_data_frame("dt"),
                    show_query_footer(
                        target="sql_query_section",
                        content=ui.output_ui("sql_output"),
                        right=ui.output_ui("ui_reset", inline=True),
                    ),
                )
            ]
            if multi_table:
                drawer_children.append(
                    ui.accordion(
                        *[
                            ui.accordion_panel(
                                tags.span(
                                    name,
                                    ui.output_ui(f"active_badge_{name}", inline=True),
                                ),
                                ui.output_data_frame(f"dt_{name}"),
                                show_query_footer(
                                    target=f"sql_query_section_{name}",
                                    content=ui.output_ui(f"sql_view_{name}"),
                                ),
                                value=name,
                            )
                            for name in table_names
                        ],
                        id="data_sources_accordion",
                        open=False,
                    )
                )
            return self.page(
                ui.span("querychat with ", ui.code(first_table_name)),
                window_title="querychat",
                drawer=chat_drawer(
                    *drawer_children,
                    title="Data Sources",
                    open=False,
                    width=DRAWER_WIDTH,
                ),
            )
```

[pkg-py/src/querychat/_shiny.py](https://github.com/posit-dev/querychat/blob/a4da2b1624fb78bd4d1bb8123947f30839bca0de/pkg-py/src/querychat/_shiny.py#L369-L416) · [More projects using Shiny for Python →](https://dashboard.exa.ai/playground/search?q=shiny%20GitHub%20projects)

**Quickstart**

```python
from shiny import  App, Inputs, Outputs, Session, ui
app_ui = ui.page_fluid("Hello Shiny!")
def server(input: Inputs, output: Outputs, session: Session):
    pass
app = App(app_ui, server)

```

From [App.html](https://shiny.posit.co/py/api/core/App.html)

### Reflex

[GitHub](https://github.com/reflex-dev/reflex) · [PyPI](https://pypi.org/project/reflex) · [Docs](https://reflex.dev/docs/getting-started/introduction)

Builds web apps in pure Python.

- Downloads / mo: 287.7K
- Stars: 29.0K
- Last release: 0.11.0
- License: Apache-2.0
- Capabilities: [From the Reflex docs](https://reflex.dev/docs/getting-started/introduction)

```sh
pip install reflex
```

**reflex-dev/reflex-chat** (342 stars)

[reflex-dev/reflex-chat](https://github.com/reflex-dev/reflex-chat) 

```python
def action_bar() -> rx.Component:
    """The action bar to send a new message."""
    return rx.center(
        rx.vstack(
            rx.form(
                rx.hstack(
                    rx.input(
                        rx.input.slot(
                            rx.tooltip(
                                rx.icon("info", size=18),
                                content="Enter a question to get a response.",
                            )
                        ),
                        placeholder="Type something...",
                        id="question",
                        flex="1",
                    ),
                    rx.button(
                        "Send",
                        loading=State.processing,
                        disabled=State.processing,
                        type="submit",
                    ),
                    max_width="50em",
                    margin="0 auto",
                    align_items="center",
                ),
                reset_on_submit=True,
                on_submit=State.process_question,
            ),
            rx.text(
                "ReflexGPT may return factually incorrect or misleading responses. Use discretion.",
                text_align="center",
                font_size=".75em",
                color=rx.color("mauve", 10),
            ),
            rx.logo(margin_block="-1em"),
            width="100%",
            padding_x="16px",
            align="stretch",
        ),
        position="sticky",
        bottom="0",
        left="0",
        padding_y="16px",
        backdrop_filter="auto",
        backdrop_blur="lg",
        border_top=f"1px solid {rx.color('mauve', 3)}",
        background_color=rx.color("mauve", 2),
        align="stretch",
        width="100%",
    )
```

[chat/components/chat.py](https://github.com/reflex-dev/reflex-chat/blob/b5c02280292a5e9550974cc242a3096ba67099b0/chat/components/chat.py#L61-L112) · [More projects using Reflex →](https://dashboard.exa.ai/playground/search?q=reflex%20GitHub%20projects)

**Quickstart**

```python
import reflex as rx

def index():
    return rx.heading('Hello, Reflex!')

app = rx.App()
app.add_page(index)

```

From [README.md](https://reflex.dev/docs/getting-started/introduction/)

## FAQ

### Which Python dashboard library should I use?

[Streamlit](#streamlit) suits quick data apps written as one script. [Dash](#dash) suits apps that need explicit callbacks between components. [Gradio](#gradio) suits demos of trained machine learning models.

### What is Streamlit?

[Streamlit](#streamlit) builds data apps from a Python script. It reruns the script after each user interaction.

### What is Bokeh?

[Bokeh](#bokeh) builds interactive plots and applications in the browser from Python. Its Python models serialize to BokehJS for drawing in the browser.

### What is Plotly Dash?

[Dash](#dash) is the Plotly framework for reactive web apps in Python. Declared input and output callbacks update chart and component properties.

### What is NiceGUI?

[NiceGUI](#nicegui) creates browser user interfaces from Python with a backend-first model. It serves the interface through FastAPI.

### Gradio vs Streamlit: which should I use?

[Gradio](#gradio) builds interfaces for trained machine learning models, plus custom Blocks apps. [Streamlit](#streamlit) builds general data apps from a script that reruns on each interaction.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best Python dashboard libraries Streamlit Dash Panel Solara data apps code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
