# Plotly — card for AI agents

Interactive data visualization library for Python with rich chart and dashboard support.

Category: Charts and data visualisation · PyPI package `plotly` · latest version 7.1.0 (checked 2026-11-01)
Install: `pip install plotly`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## Plotly
- For Graph Objects, install with `pip install plotly`, import `plotly.graph_objects as go`, create `go.Figure()`, then call `add_trace(...)` and `fig.show()`.
- For Plotly Express, follow the README quickstart: `pip install plotly[express]`, plus a supported dataframe library.
- For static image export, install `kaleido` version 1.0 or greater. It needs Chrome or Chromium; if Kaleido can't find it, run `plotly_get_chrome`.
- To use figures as Jupyter widgets, also install `jupyter` and `anywidget`.
- If `px.bar` picks the wrong orientation on pandas `uint8` to `uint64` columns, check the version: v7.1.0 lists a fix for Express treating them as categorical.
- If `Figure.show()` renders a too-large div in Google Colab, check the version: v7.1.0 lists a fix for this.

## Agent Skills for it
- plotly from brycewang-stanford/Auto-Empirical-Research-Skills: `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill plotly`

## Docs written for agents
- [llms.txt (index of the docs)](https://plotly.com/llms.txt)

## What it is
- plotly.py is the Python package `plotly`. The README calls it "an interactive, open-source, and browser-based graphing library for Python" and says it is built on top of plotly.js. The README also says plotly.js ships with over 30 chart types. The GitHub repository was created on 2013-11-21 and is MIT licensed.
- You can build a figure in two ways. With Graph Objects (`plotly.graph_objects`), you create an empty `go.Figure()` and add traces to it. With Plotly Express (`plotly.express`), one function call such as `px.bar(...)` returns a finished figure. The README's Express quickstart installs `plotly[express]` and points to a supported dataframe library. The README says Plotly graphs can be viewed in Jupyter, in marimo, as standalone HTML files, or inside Dash applications.
- Static image export is a separate, optional step that goes through the `kaleido` package. The docs site at plotly.com/python is built around copy-pasteable snippets. They run from scatter and bar charts to financial, map, machine learning, bioinformatics and 3D examples.

## Caveats
- Static images need Chrome or Chromium: Static image export uses `kaleido` (version 1.0 or greater), and Kaleido needs a Chrome or Chromium install on the machine. If Kaleido can't find one, the README says you may need to run `plotly_get_chrome`.
- Express wants an extra and a dataframe library: The README's Express quickstart uses `pip install plotly[express]`. It adds that you'll also need to install a supported dataframe library yourself.
- Jupyter widgets need two more packages: To use figures as Jupyter widgets, you have to install `jupyter` and `anywidget` separately, with pip or conda.
- Unsigned integer columns: fixed in v7.1.0: The v7.1.0 changelog fixes Plotly Express treating `uint8` to `uint64` pandas columns as categorical. According to the changelog, this made `px.bar` and other functions pick the wrong orientation. The notes do not say which earlier versions were affected.
- User stories are framed around Dash Enterprise: Most entries on Plotly's user stories page name Dash Enterprise in their titles. The short blurbs report business outcomes and say little about the charting code itself.

## Numbers (AgentGid data)
- Gid Score: 73.3 (#261 of all tools, 8 of 95 in its category)
- Used in 56 public projects set up for AI coding agents (0.9%)
- Downloads last week: 15,228,726 (as of 2026-11-24), +9.0% over 4 weeks
- GitHub stars: 18,926 (as of 2026-11-24)
- Last push: 2026-11-23

## Often used with
pandas 87.5%, NumPy 78.6%, python-dotenv 62.5%, Requests 53.6%, scikit-learn 51.8%, Pydantic 48.2%

## Checked alternatives (same job)
- Matplotlib: https://agentgid.com/tools/matplotlib/agent.md
- Seaborn: https://agentgid.com/tools/seaborn/agent.md
- Bokeh: https://agentgid.com/tools/bokeh/agent.md
- plotnine: https://agentgid.com/tools/plotnine/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/plotly/
- Homepage: https://plotly.com/python/
- Repository: https://github.com/plotly/plotly.py
- Source: https://github.com/plotly/plotly.py#readme
- Source: https://github.com/plotly/plotly.py
- Source: https://github.com/plotly/plotly.py/releases
- Source: https://plotly.com/python/

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
