Package: plotly
plotly.pyLatest ReleaseUser forumPyPI DownloadsLicenseQuickstartpip install plotly==5.19.0InsideJupyter(installable withpip install "jupyterlab>=3" "ipywidgets>=7.6"):importplotly.expressaspxfig=px.bar(x=["a","b","c"],y=[1,3,2])fig.show()See thePython documentationfor more examples.Overviewplotly.pyis an interactive, open-source, and browser-based graphing library for Python :sparkles:Built on top ofplotly.js,plotly.pyis 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.pyisMIT Licensed. Plotly graphs can be viewed in Jupyter notebooks, standalone HTML files, or integrated intoDash applications.Contact usfor consulting, dashboard development, application integration, and feature additions.Online DocumentationContributing to plotlyChangelogCode of ConductVersion 4 Migration GuideNew! Announcing Dash 1.0Community forumInstallationplotly.py may be installed using pip...pip install plotly==5.19.0or conda.conda install -c plotly plotly=5.19.0JupyterLab SupportFor use inJupyterLab, install thejupyterlabandipywidgetspackages usingpip:pip install "jupyterlab>=3" "ipywidgets>=7.6"orconda:conda install "jupyterlab>=3" "ipywidgets>=7.6"The instructions above apply to JupyterLab 3.x.For JupyterLab 2 or earlier, run the following commands to install the required JupyterLab extensions (note that this will requirenodeto be installed):# JupyterLab 2.x renderer support
jupyter labextension install jupyterlab-plotly@5.19.0 @jupyter-widgets/jupyterlab-managerPlease check out ourTroubleshooting guideif you run into any problems with JupyterLab.Jupyter Notebook SupportFor use in the Jupyter Notebook, install thenotebookandipywidgetspackages usingpip:pip install "notebook>=5.3" "ipywidgets>=7.5"orconda:conda install "notebook>=5.3" "ipywidgets>=7.5"Static Image Exportplotly.py supportsstatic image export,
using either thekaleidopackage (recommended, supported as ofplotlyversion 4.9) or theorcacommand line utility (legacy as ofplotlyversion 4.9).KaleidoThekaleidopackage has no dependencies and can be installed
using pip...pip install -U kaleidoor conda.conda install -c conda-forge python-kaleidoOrcaWhile Kaleido is now the recommended image export approach because it is easier to install
and more widely compatible,static image exportcan also be supported
by the legacyorcacommand line utility and thepsutilPython package.These dependencies can both be installed using conda:conda install -c plotly plotly-orca==1.3.1 psutilOr,psutilcan be installed using pip...pip install psutiland orca can be installed according to the instructions in theorca README.Extended Geo SupportSome plotly.py features rely on fairly large geographic shape files. The county
choropleth figure factory is one such example. These shape files are distributed as a
separateplotly-geopackage. This package can be installed using pip...pip install plotly-geo==1.0.0or condaconda install -c plotly plotly-geo=1.0.0MigrationIf you're migrating from plotly.py v3 to v4, please check out theVersion 4 migration guideIf you're migrating from plotly.py v2 to v3, please check out theVersion 3 migration guideCopyright and LicensesCode and documentation copyright 2019 Plotly, Inc.Code released under theMIT license.Docs released under theCreative Commons license.