Skip to content

Commit

Permalink
Upgrade jupyterlab to 1.2.6 (#499)
Browse files Browse the repository at this point in the history
Upgrade jupyterlab to 1.2.6
  • Loading branch information
betatim committed Feb 1, 2020
2 parents edb7c29 + 66e9836 commit 5a4f47b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
3 changes: 2 additions & 1 deletion integration-tests/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_serverextensions():
], stderr=subprocess.PIPE)

extensions = [
'jupyterlab 0.35.4',
'jupyterlab 1.2.6',
'nbgitpuller 0.6.1',
'nteract_on_jupyter 2.0.7',
'nbresuse '
Expand Down Expand Up @@ -51,3 +51,4 @@ def test_labextensions():
"""
# Currently we only install jupyterhub
assert os.path.exists('/opt/tljh/user/bin/jupyter-labhub')

22 changes: 18 additions & 4 deletions tljh/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,28 @@ def ensure_jupyterlab_extensions():
Install the JupyterLab extensions we want.
"""
extensions = [
'@jupyterlab/hub-extension',
'@jupyter-widgets/jupyterlab-manager'
'@jupyter-widgets/jupyterlab-manager@1.1' # for jupyterlab 1.2.x
]
install_options = [
'--no-build' # do not build extension at install time. Will build later
]
utils.run_subprocess([
os.path.join(USER_ENV_PREFIX, 'bin/jupyter'),
'labextension',
'install'
] + extensions)
] + extensions + install_options)

# Build all the lab extensions in one go using jupyter lab build command
build_options = [
'--minimize=False',
'--dev-build=False'
]

utils.run_subprocess([
os.path.join(USER_ENV_PREFIX, 'bin/jupyter'),
'lab',
'build'
] + build_options)


def ensure_jupyterhub_package(prefix):
Expand Down Expand Up @@ -263,7 +277,7 @@ def ensure_user_environment(user_requirements_txt_file):
'jupyterhub==1.0.0',
'notebook==5.7.8',
# Install additional notebook frontends!
'jupyterlab==0.35.4',
'jupyterlab==1.2.6',
'nteract-on-jupyter==2.0.7',
# nbgitpuller for easily pulling in Git repositories
'nbgitpuller==0.6.1',
Expand Down

0 comments on commit 5a4f47b

Please sign in to comment.