From 76c78a2a61a2d7fabef67dc26bf52ab2fe5eb8b9 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Wed, 3 Jan 2024 10:11:13 +0100 Subject: [PATCH] Fix install command for JupyterLab >=3 --- beakerx_tabledisplay/beakerx_tabledisplay/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beakerx_tabledisplay/beakerx_tabledisplay/install.py b/beakerx_tabledisplay/beakerx_tabledisplay/install.py index 237dfde..3f49f86 100644 --- a/beakerx_tabledisplay/beakerx_tabledisplay/install.py +++ b/beakerx_tabledisplay/beakerx_tabledisplay/install.py @@ -25,7 +25,7 @@ def install(args): subprocess.check_call(["jupyter", "serverextension", "enable", "beakerx_tabledisplay", "--py", "--sys-prefix"]) - if LAB_VERSION is not None and LAB_VERSION != 3: + if LAB_VERSION is not None and LAB_VERSION < 3: subprocess.call(["jupyter", "labextension", "install", "@jupyter-widgets/jupyterlab-manager", "--no-build"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) if LAB_VERSION == 1: @@ -38,7 +38,7 @@ def uninstall(args): subprocess.check_call(["jupyter", "nbextension", "disable", "beakerx_tabledisplay", "--py", "--sys-prefix"]) subprocess.check_call(["jupyter", "nbextension", "uninstall", "beakerx_tabledisplay", "--py", "--sys-prefix"]) subprocess.check_call(["jupyter", "serverextension", "disable", "beakerx_tabledisplay", "--py", "--sys-prefix"]) - if LAB_VERSION is not None: + if LAB_VERSION is not None and LAB_VERSION < 3: subprocess.call(["jupyter", "labextension", "uninstall", "beakerx-jupyterlab"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)