# Panel

> Build dashboards and data apps entirely in Python

- Category: App UIs & Builders / Data App Builders
- Language: Python
- Licence: BSD-3-Clause
- Repository: https://github.com/holoviz/panel
- Website: https://panel.holoviz.org
- Canonical page: https://ai-tldr.dev/tools/panel/

## In short

Panel is an open-source Python library for building tools, dashboards, and full applications without leaving Python. It is part of the HoloViz ecosystem and takes a batteries-included approach, giving you widgets, layouts, data tables, and plotting integrations out of the box. It sits in the Data App Builders category of the App UIs & Builders tools and is open-source, written in Python and licensed BSD-3-Clause.

## Overview

Panel is an open-source Python library for building tools, dashboards, and full applications without leaving Python. It is part of the HoloViz ecosystem and takes a batteries-included approach, giving you widgets, layouts, data tables, and plotting integrations out of the box.

It is aimed at data scientists, analysts, and Python developers who want to turn notebooks and scripts into interactive web apps. You can work in Jupyter notebooks or editors like VS Code, PyCharm, and Spyder, and the same code runs as a served web app.

As a data app builder, Panel connects to the visualization tools you already use, including Matplotlib, Plotly, Bokeh, Altair/Vega, HoloViews, hvPlot, Datashader, and the ipywidgets ecosystem. It offers both high-level reactive APIs and lower-level callback APIs, so simple exploratory apps and larger multi-page apps both fit.

## What it does

- Build dashboards and multi-page apps entirely in Python, with no separate frontend code required
- Integrates with many plotting libraries: Matplotlib, Plotly, Bokeh, Altair/Vega, HoloViews, hvPlot, Datashader, Folium, and more
- Reactive APIs (such as pn.bind) plus lower-level callback APIs for finer control
- Bi-directional communication to react to clicks, selections, and hover events
- Works in Jupyter notebooks and in editors like VS Code, PyCharm, and Spyder
- Serve scripts or notebooks as web apps with the panel serve command

## Getting started

Install Panel, write a small interactive script, then serve it as a web app.

1. Install Panel

   Install from PyPI with pip, or from conda if you use the conda ecosystem.

```bash
pip install panel
```

2. Build an interactive app

   Create a script that binds a widget to a function and lays them out together. Marking a layout or template servable lets Panel serve it.

```python
import panel as pn

pn.extension()

def model(n=5):
    return "⭐" * n

slider = pn.widgets.IntSlider(value=5, start=1, end=5)

interactive_model = pn.bind(model, n=slider)

layout = pn.Column(slider, interactive_model)

pn.template.FastListTemplate(
    site="Panel", title="Example", main=[layout],
).servable()
```

3. Serve the app

   Run the script with panel serve to open it in your browser. You can serve a notebook the same way.

```bash
panel serve name_of_script.py --show
```

## When to use it

- Turn an exploratory Jupyter notebook into a shareable interactive dashboard
- Build an internal data exploration tool that combines widgets, plots, and tables
- Wrap existing Matplotlib, Plotly, or Bokeh charts in a controllable web UI
- Deploy a multi-page Python app for stakeholders without writing JavaScript
