plotly.py README

The project's README from github.com/plotly/plotly.py. As one markdown file: README.md.

plotly.py

Latest Release
User forum
PyPI Downloads
License
Maintained by Plotly

Quickstart

pip install plotly

import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig.show()

See the Python documentation for more examples.

Overview

plotly.py is an interactive, open-source, and browser-based graphing library for Python :sparkles:

Built on top of plotly.js, plotly.py is a high-level, declarative charting library. plotly.js ships with over 30 chart types, including scientific charts, 3D graphs, statistical charts, SVG maps, financial charts, and more.

plotly.py is MIT Licensed. Plotly graphs can be viewed in Jupyter notebooks, other Python notebook software such as marimo, as standalone HTML files, or integrated into Dash applications.

Contact us for consulting, dashboard development, application integration, and feature additions.



Installation

plotly.py may be installed using pip

pip install plotly

or conda.

conda install -c conda-forge plotly

Jupyter Widget Support

For use as a Jupyter widget, install jupyter and anywidget packages using pip:

pip install jupyter anywidget

or conda:

conda install jupyter anywidget

Static Image Export

plotly.py supports static image export, using the kaleido package (version 1.0 or greater).

Kaleido has minimal dependencies and can be installed using pip

pip install -U kaleido

or conda

conda install -c conda-forge python-kaleido

Kaleido requires Chrome or Chromium to generate images. By default, Kaleido will use the Chrome or Chromium version already installed on your system. If you don't have it installed or Kaleido can't find it, you may need to install it by running the command:

plotly_get_chrome

on your command line.

Code and documentation copyright 2026 Plotly, Inc.

Code released under the MIT license.

Docs released under the Creative Commons license.

plotly.py (plotly/plotly.py)

Searching Database…

18.8K ·GitHub
Что это такое?Интерактивная библиотека для построения графиков с открытым исходным кодом для Python: вы описываете диаграммы в коде на Python и получаете интерактивные визуализации, которые отображаются в браузере.
Это Python-пакет, который я импортирую, или что-то, что мне нужно размещать у себя — как именно рисуются графики?Это библиотека для Python, которую вы импортируете. Внутри она представляет собой высокоуровневый декларативный слой над plotly.js, который и отрисовывает графики в браузере.
Как добавить её в проект?Запустите pip install plotly (подойдёт и conda) — на этом быстрый старт закончен, а в документации по Python есть больше примеров.
Нужно ли что-то дополнительное, чтобы использовать её в Jupyter?Только для поддержки интерактивных виджетов: установите пакеты jupyter и anywidget вместе с plotly — через pip или conda.
Если я захочу экспортировать график как статичное изображение, это сработает сразу?Не совсем из коробки: для экспорта нужен пакет kaleido (v1.0+), а Kaleido требует Chrome или Chromium — если на вашей системе его нет, установите его командой plotlygetchrome.
Обязательно сидеть в Jupyter, или графики работают ещё где-то?Помимо Jupyter, графики можно смотреть в других средах блокнотов, например marimo, сохранять в отдельные HTML-файлы или встраивать в приложения на Dash.
Она бесплатная, в том числе для коммерческого использования?Да — plotly.py распространяется по лицензии MIT; права на код принадлежат Plotly, Inc., а документация — под Creative Commons.
Какие типы графиков она вообще умеет строить?В plotly.js входит более 30 типов диаграмм: научные графики, 3D-графики, статистические диаграммы, SVG-карты, финансовые графики и многое другое.
Компания за ней предлагает платную помощь?Да. Plotly, Inc. предлагает консультации, разработку дашбордов, интеграцию в приложения и добавление новых возможностей — ссылка для связи есть в README.
Проект активно поддерживается?Да — в README указан копирайт 2026 года, а в репозитории работают CI-процессы для сборки документации, сборки пакетов, обновления changelog, codegen и проверки форматирования.
Creator
plotly
Size
418.3 MB
Stars
18.8K
Age
12y
Commits · 90 Days