| 1 |
Metadata-Version: 2.1 |
| 2 |
Name: plotly |
| 3 |
Version: 5.20.0 |
| 4 |
Summary: An open-source, interactive data visualization library for Python |
| 5 |
Home-page: https://plotly.com/python/ |
| 6 |
Author: Chris P |
| 7 |
Author-email: [email protected] |
| 8 |
Maintainer: Nicolas Kruchten |
| 9 |
Maintainer-email: [email protected] |
| 10 |
License: MIT |
| 11 |
Project-URL: Github, https://github.com/plotly/plotly.py |
| 12 |
Classifier: Development Status :: 5 - Production/Stable |
| 13 |
Classifier: Programming Language :: Python :: 3.8 |
| 14 |
Classifier: Programming Language :: Python :: 3.9 |
| 15 |
Classifier: Programming Language :: Python :: 3.10 |
| 16 |
Classifier: Programming Language :: Python :: 3.11 |
| 17 |
Classifier: Programming Language :: Python :: 3.12 |
| 18 |
Classifier: Topic :: Scientific/Engineering :: Visualization |
| 19 |
Classifier: License :: OSI Approved :: MIT License |
| 20 |
Requires-Python: >=3.8 |
| 21 |
Description-Content-Type: text/markdown |
| 22 |
License-File: LICENSE.txt |
| 23 |
Requires-Dist: tenacity>=6.2.0 |
| 24 |
Requires-Dist: packaging |
| 25 |
|
| 26 |
# plotly.py |
| 27 |
|
| 28 |
<table> |
| 29 |
<tr> |
| 30 |
<td>Latest Release</td> |
| 31 |
<td> |
| 32 |
<a href="https://pypi.org/project/plotly/"/> |
| 33 |
<img src="https://badge.fury.io/py/plotly.svg"/> |
| 34 |
</td> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td>User forum</td> |
| 38 |
<td> |
| 39 |
<a href="https://community.plotly.com/"/> |
| 40 |
<img src="https://img.shields.io/badge/help_forum-discourse-blue.svg"/> |
| 41 |
</td> |
| 42 |
</tr> |
| 43 |
<tr> |
| 44 |
<td>PyPI Downloads</td> |
| 45 |
<td> |
| 46 |
<a href="https://pepy.tech/project/plotly"/> |
| 47 |
<img src="https://pepy.tech/badge/plotly/month"/> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
<tr> |
| 51 |
<td>License</td> |
| 52 |
<td> |
| 53 |
<a href="https://opensource.org/licenses/MIT"/> |
| 54 |
<img src="https://img.shields.io/badge/License-MIT-yellow.svg"/> |
| 55 |
</td> |
| 56 |
</tr> |
| 57 |
</table> |
| 58 |
|
| 59 |
## Quickstart |
| 60 |
|
| 61 |
`pip install plotly==5.20.0` |
| 62 |
|
| 63 |
Inside [Jupyter](https://jupyter.org/install) (installable with `pip install "jupyterlab>=3" "ipywidgets>=7.6"`): |
| 64 |
|
| 65 |
```python |
| 66 |
import plotly.express as px |
| 67 |
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2]) |
| 68 |
fig.show() |
| 69 |
``` |
| 70 |
|
| 71 |
See the [Python documentation](https://plotly.com/python/) for more examples. |
| 72 |
|
| 73 |
|
| 74 |
## Overview |
| 75 |
|
| 76 |
[plotly.py](https://plotly.com/python/) is an interactive, open-source, and browser-based graphing library for Python :sparkles: |
| 77 |
|
| 78 |
Built on top of [plotly.js](https://github.com/plotly/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. |
| 79 |
|
| 80 |
`plotly.py` is [MIT Licensed](https://github.com/plotly/plotly.py/blob/master/LICENSE.txt). Plotly graphs can be viewed in Jupyter notebooks, standalone HTML files, or integrated into [Dash applications](https://dash.plotly.com/). |
| 81 |
|
| 82 |
[Contact us](https://plotly.com/consulting-and-oem/) for consulting, dashboard development, application integration, and feature additions. |
| 83 |
|
| 84 |
<p align="center"> |
| 85 |
<a href="https://plotly.com/python/" target="_blank"> |
| 86 |
<img src="https://raw.githubusercontent.com/cldougl/plot_images/add_r_img/plotly_2017.png"> |
| 87 |
</a></p> |
| 88 |
|
| 89 |
--- |
| 90 |
|
| 91 |
- [Online Documentation](https://plotly.com/python/) |
| 92 |
- [Contributing to plotly](https://github.com/plotly/plotly.py/blob/master/contributing.md) |
| 93 |
- [Changelog](https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md) |
| 94 |
- [Code of Conduct](https://github.com/plotly/plotly.py/blob/master/CODE_OF_CONDUCT.md) |
| 95 |
- [Version 4 Migration Guide](https://plotly.com/python/v4-migration/) |
| 96 |
- [New! Announcing Dash 1.0](https://medium.com/plotly/welcoming-dash-1-0-0-f3af4b84bae) |
| 97 |
- [Community forum](https://community.plotly.com) |
| 98 |
|
| 99 |
--- |
| 100 |
|
| 101 |
## Installation |
| 102 |
|
| 103 |
plotly.py may be installed using pip... |
| 104 |
|
| 105 |
``` |
| 106 |
pip install plotly==5.20.0 |
| 107 |
``` |
| 108 |
|
| 109 |
or conda. |
| 110 |
|
| 111 |
``` |
| 112 |
conda install -c plotly plotly=5.20.0 |
| 113 |
``` |
| 114 |
|
| 115 |
### JupyterLab Support |
| 116 |
|
| 117 |
For use in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), install the `jupyterlab` and `ipywidgets` |
| 118 |
packages using `pip`: |
| 119 |
|
| 120 |
``` |
| 121 |
pip install "jupyterlab>=3" "ipywidgets>=7.6" |
| 122 |
``` |
| 123 |
|
| 124 |
or `conda`: |
| 125 |
|
| 126 |
``` |
| 127 |
conda install "jupyterlab>=3" "ipywidgets>=7.6" |
| 128 |
``` |
| 129 |
|
| 130 |
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 require [`node`](https://nodejs.org/) to be installed): |
| 131 |
|
| 132 |
``` |
| 133 |
# JupyterLab 2.x renderer support |
| 134 |
jupyter labextension install [email protected] @jupyter-widgets/jupyterlab-manager |
| 135 |
``` |
| 136 |
|
| 137 |
Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab. |
| 138 |
|
| 139 |
### Jupyter Notebook Support |
| 140 |
|
| 141 |
For use in the Jupyter Notebook, install the `notebook` and `ipywidgets` |
| 142 |
packages using `pip`: |
| 143 |
|
| 144 |
``` |
| 145 |
pip install "notebook>=5.3" "ipywidgets>=7.5" |
| 146 |
``` |
| 147 |
|
| 148 |
or `conda`: |
| 149 |
|
| 150 |
``` |
| 151 |
conda install "notebook>=5.3" "ipywidgets>=7.5" |
| 152 |
``` |
| 153 |
|
| 154 |
### Static Image Export |
| 155 |
|
| 156 |
plotly.py supports [static image export](https://plotly.com/python/static-image-export/), |
| 157 |
using either the [`kaleido`](https://github.com/plotly/Kaleido) |
| 158 |
package (recommended, supported as of `plotly` version 4.9) or the [orca](https://github.com/plotly/orca) |
| 159 |
command line utility (legacy as of `plotly` version 4.9). |
| 160 |
|
| 161 |
#### Kaleido |
| 162 |
|
| 163 |
The [`kaleido`](https://github.com/plotly/Kaleido) package has no dependencies and can be installed |
| 164 |
using pip... |
| 165 |
|
| 166 |
``` |
| 167 |
pip install -U kaleido |
| 168 |
``` |
| 169 |
|
| 170 |
or conda. |
| 171 |
|
| 172 |
``` |
| 173 |
conda install -c conda-forge python-kaleido |
| 174 |
``` |
| 175 |
|
| 176 |
#### Orca |
| 177 |
|
| 178 |
While Kaleido is now the recommended image export approach because it is easier to install |
| 179 |
and more widely compatible, [static image export](https://plotly.com/python/static-image-export/) |
| 180 |
can also be supported |
| 181 |
by the legacy [orca](https://github.com/plotly/orca) command line utility and the |
| 182 |
[`psutil`](https://github.com/giampaolo/psutil) Python package. |
| 183 |
|
| 184 |
These dependencies can both be installed using conda: |
| 185 |
|
| 186 |
``` |
| 187 |
conda install -c plotly plotly-orca==1.3.1 psutil |
| 188 |
``` |
| 189 |
|
| 190 |
Or, `psutil` can be installed using pip... |
| 191 |
|
| 192 |
``` |
| 193 |
pip install psutil |
| 194 |
``` |
| 195 |
|
| 196 |
and orca can be installed according to the instructions in the [orca README](https://github.com/plotly/orca). |
| 197 |
|
| 198 |
|
| 199 |
### Extended Geo Support |
| 200 |
|
| 201 |
Some plotly.py features rely on fairly large geographic shape files. The county |
| 202 |
choropleth figure factory is one such example. These shape files are distributed as a |
| 203 |
separate `plotly-geo` package. This package can be installed using pip... |
| 204 |
|
| 205 |
``` |
| 206 |
pip install plotly-geo==1.0.0 |
| 207 |
``` |
| 208 |
|
| 209 |
or conda |
| 210 |
|
| 211 |
``` |
| 212 |
conda install -c plotly plotly-geo=1.0.0 |
| 213 |
``` |
| 214 |
|
| 215 |
## Migration |
| 216 |
|
| 217 |
If you're migrating from plotly.py v3 to v4, please check out the [Version 4 migration guide](https://plotly.com/python/v4-migration/) |
| 218 |
|
| 219 |
If you're migrating from plotly.py v2 to v3, please check out the [Version 3 migration guide](https://github.com/plotly/plotly.py/blob/master/migration-guide.md) |
| 220 |
|
| 221 |
## Copyright and Licenses |
| 222 |
|
| 223 |
Code and documentation copyright 2019 Plotly, Inc. |
| 224 |
|
| 225 |
Code released under the [MIT license](https://github.com/plotly/plotly.py/blob/master/LICENSE.txt). |
| 226 |
|
| 227 |
Docs released under the [Creative Commons license](https://github.com/plotly/documentation/blob/source/LICENSE). |
| 228 |
|