From bca7bee29dcd2379fe5d8c5837a7acc272286b3b Mon Sep 17 00:00:00 2001 From: Luciano Resende Date: Wed, 12 Feb 2020 18:19:54 -0800 Subject: [PATCH 1/2] Fix error message during invalid extension install --- jupyterlab/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterlab/commands.py b/jupyterlab/commands.py index 65022953bdba..b294f9fe5569 100644 --- a/jupyterlab/commands.py +++ b/jupyterlab/commands.py @@ -893,7 +893,7 @@ def link_package(self, path): """ path = _normalize_path(path) if not osp.exists(path) or not osp.isdir(path): - msg = 'Can install "%s" only link local directories' + msg = 'Cannot install "%s" only link local directories' raise ValueError(msg % path) with TemporaryDirectory() as tempdir: From 3c0550f05ad1f097c3e2baa7aad400d82921cde5 Mon Sep 17 00:00:00 2001 From: Luciano Resende Date: Wed, 12 Feb 2020 22:27:45 -0800 Subject: [PATCH 2/2] Update suggested build type on troubleshoot msg When an error occurs, user is suggested to disable the `dev_build` but it suggests using `--dev-mode=False` which should actually be `--dev-build=False` --- jupyterlab/labapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterlab/labapp.py b/jupyterlab/labapp.py index 8c719e85acd4..b3a67b1a4cdd 100644 --- a/jupyterlab/labapp.py +++ b/jupyterlab/labapp.py @@ -48,7 +48,7 @@ If you are building via the `jupyter lab build` command, you can disable these options like so: -jupyter lab build --dev-mode=False --minimize=False +jupyter lab build --dev-build=False --minimize=False You can also disable these options for all JupyterLab builds by adding these lines to a Jupyter config file named `jupyter_config.py`: