forked from plotly/plotly.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7595f4b
commit 50fa0da
Showing
4 changed files
with
73 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ Our recommended IDE for Plotly’s Python graphing library is Dash Enterprise’ | |
|
||
`pip install plotly==4.14.3` | ||
|
||
Inside [Jupyter notebook](https://jupyter.org/install) (installable with `pip install "notebook>=5.3" "ipywidgets>=7.5"`): | ||
Inside [Jupyter](https://jupyter.org/install) (installable with `pip install "jupyterlab>=3" "ipywidgets>=7.6"`): | ||
|
||
```python | ||
import plotly.graph_objects as go | ||
|
@@ -95,48 +95,45 @@ or conda. | |
conda install -c plotly plotly=4.14.3 | ||
``` | ||
|
||
### Jupyter Notebook Support | ||
### JupyterLab Support | ||
|
||
For use in the Jupyter Notebook, install the `notebook` and `ipywidgets` | ||
For use in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), install the `jupyterlab` and `ipywidgets` | ||
packages using `pip`: | ||
|
||
``` | ||
pip install "notebook>=5.3" "ipywidgets>=7.5" | ||
$ pip install "jupyterlab>=3" "ipywidgets>=7.6" | ||
``` | ||
|
||
or `conda`: | ||
|
||
``` | ||
conda install "notebook>=5.3" "ipywidgets>=7.5" | ||
$ conda install "jupyterlab>=3" "ipywidgets>=7.6" | ||
``` | ||
|
||
### JupyterLab Support | ||
|
||
For use in JupyterLab, install the `jupyterlab` and `ipywidgets` | ||
packages using `pip`: | ||
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): | ||
|
||
``` | ||
pip install jupyterlab "ipywidgets>=7.5" | ||
# JupyterLab 2.x renderer support | ||
jupyter labextension install [email protected] @jupyter-widgets/jupyterlab-manager | ||
``` | ||
|
||
or `conda`: | ||
Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab. | ||
|
||
### Jupyter Notebook Support | ||
|
||
For use in the Jupyter Notebook, install the `notebook` and `ipywidgets` | ||
packages using `pip`: | ||
|
||
``` | ||
conda install jupyterlab "ipywidgets>=7.5" | ||
pip install "notebook>=5.3" "ipywidgets>=7.5" | ||
``` | ||
|
||
Then run the following commands to install the required JupyterLab extensions (note that this will require [`node`](https://nodejs.org/) to be installed): | ||
or `conda`: | ||
|
||
``` | ||
# Basic JupyterLab renderer support | ||
jupyter labextension install [email protected] | ||
# OPTIONAL: Jupyter widgets extension for FigureWidget support | ||
jupyter labextension install @jupyter-widgets/jupyterlab-manager [email protected] | ||
conda install "notebook>=5.3" "ipywidgets>=7.5" | ||
``` | ||
|
||
Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab. | ||
|
||
### Static Image Export | ||
|
||
plotly.py supports [static image export](https://plotly.com/python/static-image-export/), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ jupyter: | |
extension: .md | ||
format_name: markdown | ||
format_version: '1.2' | ||
jupytext_version: 1.6.0 | ||
jupytext_version: 1.4.2 | ||
kernelspec: | ||
display_name: Python 3 | ||
language: python | ||
|
@@ -34,7 +34,6 @@ jupyter: | |
- /python/pytables/ | ||
--- | ||
|
||
<!-- #region --> | ||
|
||
### Overview | ||
|
||
|
@@ -72,7 +71,6 @@ This package contains everything you need to write figures to standalone HTML fi | |
|
||
> Note: **No internet connection, account, or payment is required to use plotly.py.** Prior to version 4, this library could operate in either an "online" or "offline" mode. The documentation tended to emphasize the online mode, where graphs get published to the Chart Studio web service. In version 4, all "online" functionality was removed from the `plotly` package and is now available as the separate, optional, `chart-studio` package (See below). **plotly.py version 4 is "offline" only, and does not include any functionality for uploading figures or data to cloud services.** | ||
<!-- #endregion --> | ||
|
||
```python | ||
import plotly.graph_objects as go | ||
|
@@ -93,32 +91,28 @@ snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/' | |
IFrame(snippet_url + 'getting-started', width='100%', height=630) | ||
``` | ||
|
||
<!-- #region --> | ||
|
||
#### Jupyter Notebook Support | ||
#### JupyterLab Support | ||
|
||
For use in the classic [Jupyter Notebook](https://jupyter.org/), install the `notebook` and `ipywidgets` | ||
For use in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), install the `jupyterlab` and `ipywidgets` | ||
packages using `pip`: | ||
|
||
``` | ||
$ pip install "notebook>=5.3" "ipywidgets>=7.5" | ||
$ pip install "jupyterlab>=3" "ipywidgets>=7.6" | ||
``` | ||
|
||
or `conda`: | ||
|
||
``` | ||
$ conda install "notebook>=5.3" "ipywidgets>=7.5" | ||
$ conda install "jupyterlab>=3" "ipywidgets>=7.6" | ||
``` | ||
|
||
These packages contain everything you need to run a Jupyter notebook... | ||
These packages contain everything you need to run JupyterLab... | ||
|
||
``` | ||
$ jupyter notebook | ||
$ jupyter lab | ||
``` | ||
|
||
and display plotly figures inline using the notebook renderer... | ||
|
||
<!-- #endregion --> | ||
and display plotly figures inline using the `plotly_mimetype` renderer... | ||
|
||
```python | ||
import plotly.graph_objects as go | ||
|
@@ -134,65 +128,61 @@ fig = go.FigureWidget(data=go.Bar(y=[2, 3, 1])) | |
fig | ||
``` | ||
|
||
<!-- #region --> | ||
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): | ||
|
||
``` | ||
# JupyterLab 2.x renderer support | ||
jupyter labextension install [email protected] @jupyter-widgets/jupyterlab-manager | ||
``` | ||
|
||
Please check out our [Troubleshooting guide](/python/troubleshooting/) if you run into any problems with JupyterLab, particularly if you are using multiple python environments inside Jupyter. | ||
|
||
|
||
See [_Displaying Figures in Python_](/python/renderers/) for more information on the renderers framework, and see [_Plotly FigureWidget Overview_](/python/figurewidget/) for more information on using `FigureWidget`. | ||
|
||
#### JupyterLab Support | ||
|
||
For use in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), install the `jupyterlab` and `ipywidgets` | ||
packages using `pip`: | ||
|
||
``` | ||
$ pip install jupyterlab "ipywidgets>=7.6" | ||
``` | ||
#### Jupyter Notebook Support | ||
|
||
or `conda`: | ||
For use in the classic [Jupyter Notebook](https://jupyter.org/), install the `notebook` and `ipywidgets` | ||
packages using `pip`: | ||
|
||
``` | ||
$ conda install jupyterlab "ipywidgets>=7.6" | ||
$ pip install "notebook>=5.3" "ipywidgets>=7.5" | ||
``` | ||
|
||
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): | ||
or `conda`: | ||
|
||
``` | ||
# JupyterLab renderer support | ||
jupyter labextension install [email protected] | ||
# OPTIONAL: Jupyter widgets extension | ||
jupyter labextension install @jupyter-widgets/jupyterlab-manager [email protected] | ||
$ conda install "notebook>=5.3" "ipywidgets>=7.5" | ||
``` | ||
|
||
These packages contain everything you need to run JupyterLab... | ||
These packages contain everything you need to run a Jupyter notebook... | ||
|
||
``` | ||
$ jupyter lab | ||
$ jupyter notebook | ||
``` | ||
|
||
and display plotly figures inline using the `plotly_mimetype` renderer... | ||
and display plotly figures inline using the notebook renderer... | ||
|
||
<!-- #endregion --> | ||
|
||
```python | ||
import plotly.graph_objects as go | ||
fig = go.Figure(data=go.Bar(y=[2, 3, 1])) | ||
fig.show() | ||
``` | ||
|
||
or using `FigureWidget` objects (if the "OPTIONAL" step above was executed). | ||
or using `FigureWidget` objects. | ||
|
||
```python | ||
import plotly.graph_objects as go | ||
fig = go.FigureWidget(data=go.Bar(y=[2, 3, 1])) | ||
fig | ||
``` | ||
|
||
Please check out our [Troubleshooting guide](/python/troubleshooting/) if you run into any problems with JupyterLab, particularly if you are using multiple python environments inside Jupyter. | ||
|
||
<!-- #region --> | ||
|
||
See [_Displaying Figures in Python_](/python/renderers/) for more information on the renderers framework, and see [_Plotly FigureWidget Overview_](/python/figurewidget/) for more information on using `FigureWidget`. | ||
|
||
|
||
### Static Image Export | ||
|
||
plotly.py supports [static image export](https://plotly.com/python/static-image-export/), | ||
|
@@ -283,5 +273,3 @@ Once you've installed, you can use our documentation in three main ways: | |
For information on using Python to build web applications containing plotly figures, see the [_Dash User Guide_](https://dash.plotly.com/). | ||
|
||
We also encourage you to join the [Plotly Community Forum](http://community.plotly.com/) if you want help with anything related to `plotly`. | ||
|
||
<!-- #endregion --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.