Skip to content

Commit

Permalink
Merge pull request #97 from martinRenou/fix_install_command
Browse files Browse the repository at this point in the history
  • Loading branch information
TanayParikh authored Feb 23, 2024
2 parents 1d20c43 + 76c78a2 commit 6bb5259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beakerx_tabledisplay/beakerx_tabledisplay/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)

Expand Down

0 comments on commit 6bb5259

Please sign in to comment.