Skip to content

Commit 0669b8d

Browse files
authored
Merge pull request #3129 from jtpio/tutorial-lab3
Update the custom widget tutorial for JupyterLab 3.0
2 parents 7411536 + 29b486f commit 0669b8d

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

Diff for: docs/source/examples/Widget Custom.ipynb

+22-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"To create the environment, execute the following command:\n",
5454
"\n",
5555
"```bash\n",
56-
"conda create -n ipyemail -c conda-forge jupyterlab cookiecutter nodejs python\n",
56+
"conda create -n ipyemail -c conda-forge jupyterlab cookiecutter nodejs yarn python\n",
5757
"```\n",
5858
"\n",
5959
"Then activate the environment with:\n",
@@ -120,7 +120,26 @@
120120
"\n",
121121
"You also need to enable the widget frontend extension.\n",
122122
"\n",
123-
"If you are using JupyterLab 2.x:\n",
123+
"If you are using JupyterLab 3.x:\n",
124+
"\n",
125+
"\n",
126+
"```bash\n",
127+
"# link your development version of the extension with JupyterLab\n",
128+
"jupyter labextension develop . --overwrite\n",
129+
"\n",
130+
"# rebuild extension Typescript source after making changes\n",
131+
"yarn run build\n",
132+
"```\n",
133+
"\n",
134+
"It is also possible to rebuild the widget automatically when there is a new change, using the `watch` script:\n",
135+
"\n",
136+
"```bash\n",
137+
"# watch the source directory in one terminal, automatically rebuilding when needed\n",
138+
"yarn run watch\n",
139+
"```\n",
140+
"\n",
141+
"\n",
142+
"If you are using JupyterLab 2.x, you will need to install the `@jupyter-widgets/jupyterlab-manager` extension manually:\n",
124143
"\n",
125144
"```bash\n",
126145
"# install the widget manager to display the widgets in JupyterLab\n",
@@ -802,5 +821,5 @@
802821
}
803822
},
804823
"nbformat": 4,
805-
"nbformat_minor": 2
824+
"nbformat_minor": 4
806825
}

0 commit comments

Comments
 (0)