From f305631a58c3c944a1ba8976177f08af7b4e64a6 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Wed, 17 Feb 2021 23:18:20 +0100 Subject: [PATCH 1/3] Update the custom widget tutorial for JupyterLab 3.0 --- docs/source/examples/Widget Custom.ipynb | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/docs/source/examples/Widget Custom.ipynb b/docs/source/examples/Widget Custom.ipynb index 4dd640f11a..634fedea94 100644 --- a/docs/source/examples/Widget Custom.ipynb +++ b/docs/source/examples/Widget Custom.ipynb @@ -120,7 +120,26 @@ "\n", "You also need to enable the widget frontend extension.\n", "\n", - "If you are using JupyterLab 2.x:\n", + "If you are using JupyterLab 3.x:\n", + "\n", + "\n", + "```bash\n", + "# link your development version of the extension with JupyterLab\n", + "jupyter labextension develop . --overwrite\n", + "\n", + "# rebuild extension Typescript source after making changes\n", + "jlpm run build\n", + "```\n", + "\n", + "It is also possible to rebuild the widget automatically when there is a new change, using the `watch` script:\n", + "\n", + "```bash\n", + "# watch the source directory in one terminal, automatically rebuilding when needed\n", + "jlpm run watch\n", + "```\n", + "\n", + "\n", + "If you are using JupyterLab 2.x, you will need to install the `@jupyter-widgets/jupyterlab-manager` extension manually:\n", "\n", "```bash\n", "# install the widget manager to display the widgets in JupyterLab\n", @@ -802,5 +821,5 @@ } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 } From 749552f48d114dbc93a77ba5458b9884b5a915bb Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Tue, 9 Mar 2021 10:12:05 +0100 Subject: [PATCH 2/3] Switch from jlpm to yarn Co-authored-by: Ian Hunt-Isaak --- docs/source/examples/Widget Custom.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/examples/Widget Custom.ipynb b/docs/source/examples/Widget Custom.ipynb index 634fedea94..27af7d8051 100644 --- a/docs/source/examples/Widget Custom.ipynb +++ b/docs/source/examples/Widget Custom.ipynb @@ -128,14 +128,14 @@ "jupyter labextension develop . --overwrite\n", "\n", "# rebuild extension Typescript source after making changes\n", - "jlpm run build\n", + "yarn run build\n", "```\n", "\n", "It is also possible to rebuild the widget automatically when there is a new change, using the `watch` script:\n", "\n", "```bash\n", "# watch the source directory in one terminal, automatically rebuilding when needed\n", - "jlpm run watch\n", + "yarn run watch\n", "```\n", "\n", "\n", From 29b486fdd06da80c65912a217a21b3c8808b5d92 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Tue, 9 Mar 2021 10:13:39 +0100 Subject: [PATCH 3/3] Install yarn with conda --- docs/source/examples/Widget Custom.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/examples/Widget Custom.ipynb b/docs/source/examples/Widget Custom.ipynb index 27af7d8051..c7ba89925a 100644 --- a/docs/source/examples/Widget Custom.ipynb +++ b/docs/source/examples/Widget Custom.ipynb @@ -53,7 +53,7 @@ "To create the environment, execute the following command:\n", "\n", "```bash\n", - "conda create -n ipyemail -c conda-forge jupyterlab cookiecutter nodejs python\n", + "conda create -n ipyemail -c conda-forge jupyterlab cookiecutter nodejs yarn python\n", "```\n", "\n", "Then activate the environment with:\n",