You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-20
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’
39
39
40
40
`pip install plotly==4.14.3`
41
41
42
-
Inside [Jupyter notebook](https://jupyter.org/install) (installable with `pip install "notebook>=5.3" "ipywidgets>=7.5"`):
42
+
Inside [Jupyter](https://jupyter.org/install) (installable with `pip install "jupyterlab>=3" "ipywidgets>=7.6"`):
43
43
44
44
```python
45
45
import plotly.graph_objects as go
@@ -95,48 +95,45 @@ or conda.
95
95
conda install -c plotly plotly=4.14.3
96
96
```
97
97
98
-
### Jupyter Notebook Support
98
+
### JupyterLab Support
99
99
100
-
For use in the Jupyter Notebook, install the `notebook` and `ipywidgets`
100
+
For use in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), install the `jupyterlab` and `ipywidgets`
101
101
packages using `pip`:
102
102
103
103
```
104
-
pip install "notebook>=5.3" "ipywidgets>=7.5"
104
+
$ pip install "jupyterlab>=3" "ipywidgets>=7.6"
105
105
```
106
106
107
107
or `conda`:
108
108
109
109
```
110
-
conda install "notebook>=5.3" "ipywidgets>=7.5"
110
+
$ conda install "jupyterlab>=3" "ipywidgets>=7.6"
111
111
```
112
112
113
-
### JupyterLab Support
114
-
115
-
For use in JupyterLab, install the `jupyterlab` and `ipywidgets`
116
-
packages using `pip`:
113
+
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):
Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab.
121
+
122
+
### Jupyter Notebook Support
123
+
124
+
For use in the Jupyter Notebook, install the `notebook` and `ipywidgets`
125
+
packages using `pip`:
123
126
124
127
```
125
-
conda install jupyterlab "ipywidgets>=7.5"
128
+
pip install "notebook>=5.3" "ipywidgets>=7.5"
126
129
```
127
130
128
-
Then run the following commands to install the required JupyterLab extensions (note that this will require [`node`](https://nodejs.org/) to be installed):
Copy file name to clipboardExpand all lines: doc/python/getting-started.md
+28-40
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ jupyter:
6
6
extension: .md
7
7
format_name: markdown
8
8
format_version: '1.2'
9
-
jupytext_version: 1.6.0
9
+
jupytext_version: 1.4.2
10
10
kernelspec:
11
11
display_name: Python 3
12
12
language: python
@@ -34,7 +34,6 @@ jupyter:
34
34
- /python/pytables/
35
35
---
36
36
37
-
<!-- #region -->
38
37
39
38
### Overview
40
39
@@ -72,7 +71,6 @@ This package contains everything you need to write figures to standalone HTML fi
72
71
73
72
> 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.**
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):
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.
139
+
138
140
139
141
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`.
140
142
141
-
#### JupyterLab Support
142
143
143
-
For use in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), install the `jupyterlab` and `ipywidgets`
144
-
packages using `pip`:
145
144
146
-
```
147
-
$ pip install jupyterlab "ipywidgets>=7.6"
148
-
```
145
+
#### Jupyter Notebook Support
149
146
150
-
or `conda`:
147
+
For use in the classic [Jupyter Notebook](https://jupyter.org/), install the `notebook` and `ipywidgets`
148
+
packages using `pip`:
151
149
152
150
```
153
-
$ conda install jupyterlab "ipywidgets>=7.6"
151
+
$ pip install "notebook>=5.3" "ipywidgets>=7.5"
154
152
```
155
153
156
-
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):
These packages contain everything you need to run JupyterLab...
160
+
These packages contain everything you need to run a Jupyter notebook...
167
161
168
162
```
169
-
$ jupyter lab
163
+
$ jupyter notebook
170
164
```
171
165
172
-
and display plotly figures inline using the `plotly_mimetype` renderer...
166
+
and display plotly figures inline using the notebook renderer...
173
167
174
-
<!-- #endregion -->
175
168
176
169
```python
177
170
import plotly.graph_objects as go
178
171
fig = go.Figure(data=go.Bar(y=[2, 3, 1]))
179
172
fig.show()
180
173
```
181
174
182
-
or using `FigureWidget` objects (if the "OPTIONAL" step above was executed).
175
+
or using `FigureWidget` objects.
183
176
184
177
```python
185
178
import plotly.graph_objects as go
186
179
fig = go.FigureWidget(data=go.Bar(y=[2, 3, 1]))
187
180
fig
188
181
```
189
182
190
-
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.
191
-
192
-
<!-- #region -->
193
-
194
183
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`.
Copy file name to clipboardExpand all lines: doc/python/renderers.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ jupyter:
6
6
extension: .md
7
7
format_name: markdown
8
8
format_version: '1.2'
9
-
jupytext_version: 1.6.0
9
+
jupytext_version: 1.4.2
10
10
kernelspec:
11
11
display_name: Python 3
12
12
language: python
@@ -20,7 +20,7 @@ jupyter:
20
20
name: python
21
21
nbconvert_exporter: python
22
22
pygments_lexer: ipython3
23
-
version: 3.7.6
23
+
version: 3.7.7
24
24
plotly:
25
25
description: Displaying Figures using Plotly's Python graphing library
26
26
display_as: file_settings
@@ -72,7 +72,7 @@ fig
72
72
73
73
> To be precise, figures will display themselves using the current default renderer when the two following conditions are true. First, the last expression in a cell must evaluate to a figure. Second, `plotly.py` must be running from within an `IPython` kernel.
74
74
75
-
**In many contexts, an appropriate renderer will be chosen automatically and you will not need to perform any additional configuration.** These contexts include the classic [Jupyter Notebook](https://jupyter.org/), [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/) (provided the `plotlywidget` JupyterLab extension is installed), [Visual Studio Code notebooks](https://code.visualstudio.com/docs/python/jupyter-support), [Google Colaboratory](https://colab.research.google.com/notebooks/intro.ipynb), [Kaggle](https://www.kaggle.com/kernels) notebooks, [Azure](https://notebooks.azure.com/) notebooks, and the [Python interactive shell](https://www.python.org/shell/).
75
+
**In many contexts, an appropriate renderer will be chosen automatically and you will not need to perform any additional configuration.** These contexts include the classic [Jupyter Notebook](https://jupyter.org/), [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), [Visual Studio Code notebooks](https://code.visualstudio.com/docs/python/jupyter-support), [Google Colaboratory](https://colab.research.google.com/notebooks/intro.ipynb), [Kaggle](https://www.kaggle.com/kernels) notebooks, [Azure](https://notebooks.azure.com/) notebooks, and the [Python interactive shell](https://www.python.org/shell/).
76
76
77
77
Additional contexts are supported by choosing a compatible renderer including the [IPython console](https://docs.spyder-ide.org/ipythonconsole.html), [QtConsole](https://qtconsole.readthedocs.io/en/stable/), [Spyder](https://www.spyder-ide.org/), and more.
78
78
@@ -169,7 +169,7 @@ This renderer may be useful when working with notebooks than contain lots of lar
169
169
170
170
###### `plotly_mimetype`
171
171
172
-
The `plotly_mimetype` renderer creates a specification of the figure (called a MIME-type bundle), and requests that the current user interface displays it. User interfaces that support this renderer include [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/) (requires the [`plotlywidget`](https://www.npmjs.com/package/plotlywidget) extension), [nteract](https://nteract.io/), and the Visual Studio Code [notebook interface](https://code.visualstudio.com/docs/python/jupyter-support).
172
+
The `plotly_mimetype` renderer creates a specification of the figure (called a MIME-type bundle), and requests that the current user interface displays it. User interfaces that support this renderer include [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), [nteract](https://nteract.io/), and the Visual Studio Code [notebook interface](https://code.visualstudio.com/docs/python/jupyter-support).
173
173
174
174
###### `jupyterlab`, `nteract`, and `vscode`
175
175
These are aliases for `plotly_mimetype` since this renderer is a good choice when working in JupyterLab, nteract, and the Visual Studio Code notebook interface. Note that in VSCode Notebooks, the version of Plotly.js that is used to render is provided by the [vscode-python extension](https://code.visualstudio.com/docs/languages/python) and often trails the latest version by several weeks, so the latest features of `plotly` may not be available in VSCode right away. The situation is similar for Nteract.
0 commit comments