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: docs/source/user_install.md
+39-31Lines changed: 39 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Users can install the current version of **ipywidgets** with
5
5
[pip](https://pip.pypa.io/en/stable/) or
6
6
[conda](https://conda.readthedocs.io/en/latest/).
7
7
8
-
In most cases, installing the Python `ipywidgets` package will also automatically configure classic Jupyter Notebook and JupyterLab 3.0 to display ipywidgets. With pip, do:
8
+
In most cases, installing the Python `ipywidgets` package will also automatically configure classic Jupyter Notebook and JupyterLab 3.x to display ipywidgets. With pip, do:
9
9
10
10
```bash
11
11
pip install ipywidgets
@@ -17,61 +17,52 @@ or with conda, do:
17
17
conda install -c conda-forge ipywidgets
18
18
```
19
19
20
-
Installing in classic Jupyter Notebook
21
-
--------------------------------------
22
-
23
-
Most of the time, installing `ipywidgets` automatically configures Jupyter Notebook to use widgets. The `ipywidgets` package does this by depending on the `widgetsnbextension` package, which configures the classic Jupyter Notebook to display and use widgets. If you have an old version of Jupyter Notebook installed, you may need to manually enable the ipywidgets notebook extension with:
Most of the time, installing `ipywidgets` automatically configures JupyterLab 3.x to use widgets. The `ipywidgets` package does this by depending on the `jupyterlab_widgets` package, which configures JupyterLab 3 to display and use widgets.
34
24
35
-
If your Jupyter Notebook and the IPython kernel are installed in different
25
+
If JupyterLab and the IPython kernel are installed in different
36
26
environments (for example, separate environments are providing different
37
27
Python kernels), then the installation requires two steps:
38
28
39
-
1. Install the `widgetsnbextension` package in the environment
40
-
containing the Jupyter Notebook server.
29
+
1. Install the `jupyterlab_widgets` package in the environment containing JupyterLab.
41
30
2. Install `ipywidgets` in each kernel's environment that will use ipywidgets.
42
31
43
-
For example, if using conda environments, with Jupyter Notebook installed on the
44
-
`base` environment and the kernel installed in an environment called `py36`,
32
+
For example, if using conda environments, with JupyterLab installed on the
33
+
`base` environment and the kernel installed in an environment called `pyenv`,
45
34
the commands are:
46
35
47
36
```bash
48
-
conda install -n base -c conda-forge widgetsnbextension
49
-
conda install -n py36 -c conda-forge ipywidgets
37
+
conda install -n base -c conda-forge jupyterlab_widgets
38
+
conda install -n pyenv -c conda-forge ipywidgets
50
39
```
51
40
52
-
Installing in JupyterLab 3.0
53
-
----------------------------
54
41
55
-
Most of the time, installing `ipywidgets` automatically configures JupyterLab 3.0 to use widgets. The `ipywidgets` package does this by depending on the `jupyterlab_widgets` package, version 1.0, which configures JupyterLab 3 to display and use widgets.
42
+
Installing in classic Jupyter Notebook
43
+
--------------------------------------
44
+
45
+
Most of the time, installing `ipywidgets` automatically configures Jupyter Notebook to use widgets. The `ipywidgets` package does this by depending on the `widgetsnbextension` package, which configures the classic Jupyter Notebook to display and use widgets.
56
46
57
-
If your JupyterLab and the IPython kernel are installed in different
47
+
If your Jupyter Notebook and the IPython kernel are installed in different
58
48
environments (for example, separate environments are providing different
59
49
Python kernels), then the installation requires two steps:
60
50
61
-
1. Install the `jupyterlab_widgets` package (version 1.0 or later) in the environment
62
-
containing JupyterLab.
51
+
1. Install the `widgetsnbextension` package in the environment
52
+
containing the Jupyter Notebook server.
63
53
2. Install `ipywidgets` in each kernel's environment that will use ipywidgets.
64
54
65
-
For example, if using conda environments, with JupyterLab installed on the
66
-
`base` environment and the kernel installed in an environment called `py36`,
55
+
For example, if using conda environments, with Jupyter Notebook installed on the
56
+
`base` environment and the kernel installed in an environment called `pyenv`,
67
57
the commands are:
68
58
69
59
```bash
70
-
conda install -n base -c conda-forge jupyterlab_widgets
71
-
conda install -n py36 -c conda-forge ipywidgets
60
+
conda install -n base -c conda-forge widgetsnbextension
61
+
conda install -n pyenv -c conda-forge ipywidgets
72
62
```
73
63
74
64
65
+
75
66
Installing into JupyterLab 1 or 2
76
67
---------------------------------
77
68
@@ -103,6 +94,23 @@ running the `jupyter lab clean` command which will remove the staging and
103
94
static directories from the lab directory. The location of the lab directory
104
95
can be queried by executing the command `jupyter lab path` in your terminal.
105
96
97
+
Installing into classic Jupyter Notebook 5.2 or earlier
0 commit comments