Panel can replace Streamlit for Python data apps that benefit from explicit reactive composition or integration with several visualization tools. Its APIs and deployment choices differ, so adopting it means adapting interface and execution code. Browser-only delivery is a qualified option for compatible or precomputed workloads, rather than an assurance that all server features can be exported.[2][5][6]
Overview
Panel is a Python library for building data-exploration tools, dashboards and web applications. Part of the HoloViz ecosystem, it combines widgets, layouts and visualization components with reactive or callback-based code. Authors can develop in notebooks or editors and select a deployment model suited to their application's execution needs.[2]
Application structure
Panel provides both high-level reactive interfaces and lower-level callbacks. Its integration with the PyData ecosystem allows an application to combine analytical code and visualizations rather than requiring every output to originate from one charting library. The application still needs explicit interface and dataflow design; a collection of notebook outputs is not automatically a complete deployed tool.[2]
Server-backed applications
The normal server route uses Bokeh Server. Panel's command-line interface can serve Python scripts, application directories or notebooks containing a Panel or Bokeh application, including multiple apps. This preserves Python-driven interaction on the host, which must supply the relevant runtime, libraries and data access for the app.[3]
Precomputed interaction
For small, bounded interfaces, Panel can record widget states and embed their results for JavaScript-only use. That differs from running arbitrary Python after publication. Multiple controls can cause the number of combinations to grow rapidly, and the embedding mechanism limits states by default. If states are exported into separate JSON files, the HTML must be served over HTTP to load them.[4]
Browser Python
A separate conversion route creates browser-running applications using Pyodide or PyScript. The conversion guide requires packages available for that environment and says relative imports of other scripts or modules are not supported by the documented conversion workflow. Data resources may need packaging alongside the generated HTML. This route therefore needs a compatibility check beyond confirming that a server-hosted app works.[5]
Licensing and portability
Panel uses BSD-3-Clause licensing, with redistribution and notice conditions. Its server, embedded-state and browser-Python routes preserve different kinds of functionality. Retaining application code and dependencies remains useful even when an HTML output is the delivery artifact, since precomputed states are not a general-purpose replacement for the original computation.[1][4][5]
Capabilities & limitations
Multiple execution routes
supported
Supports server-backed apps, bounded embedded state and compatible browser-Python conversion.[3][4][5]
Interactive data applications · Web browser · Runtime, dependencies and hosting requirements apply