plotly.py is a declarative charting library for Python built on Plotly.js. Figures render interactively in notebooks, HTML, or Dash apps.
Overview
plotly.py is an open-source Python library for interactive, browser-based charts. It wraps Plotly.js so you define figures in Python rather than writing JavaScript by hand.
The API includes both lower-level graph objects and Plotly Express for concise charts. It supports more than thirty chart types, spanning scientific plots, three-dimensional graphs, statistical charts, SVG maps, and financial visualizations.
You can view results in Jupyter or other Python notebook environments such as marimo, export standalone HTML, or embed charts in Dash analytical applications. Optional Jupyter widget support needs additional widget packages, and static image export uses the Kaleido helper with Chrome or Chromium.
Install via pip or conda alongside a supported dataframe library. Documentation covers figure structure, display options, and integration patterns for notebooks and apps.
Key features
- Declarative charts atop Plotly.js
- Graph Objects and Plotly Express APIs
- Scientific, 3D, map, and financial plots
- Jupyter and marimo notebook display
- Standalone HTML figure export
- Dash application integration
- Jupyter FigureWidget support
- Static export via Kaleido
Use cases
- Notebook data exploration visuals
- Interactive dashboards with Dash
- Publishing HTML charts from Python
- ML and bioinformatics plot types
Does the same job as
plotly.py doesn't name these products itself, but its own description shows it does the same job.