From 600bf225f2b2c17c7e71f880e44fbcefc469eae7 Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Sat, 22 Dec 2018 11:06:43 -0800 Subject: [PATCH] Add ipywidgets to base installation --- integration-tests/test_extensions.py | 2 +- tljh/installer.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/integration-tests/test_extensions.py b/integration-tests/test_extensions.py index e8a61fa..fa9d61f 100644 --- a/integration-tests/test_extensions.py +++ b/integration-tests/test_extensions.py @@ -40,7 +40,7 @@ def test_nbextensions(): assert '{} \x1b[32m enabled \x1b[0m'.format(e) in proc.stdout.decode() # Ensure we have 'OK' messages in our stdout, to make sure everything is importable - proc.stderr.decode() == ' - Validating: \x1b[32mOK\x1b[0m\n' * len(extensions) + assert proc.stderr.decode() == ' - Validating: \x1b[32mOK\x1b[0m\n' * len(extensions) def test_labextensions(): diff --git a/tljh/installer.py b/tljh/installer.py index 9b97dd8..1a06d0a 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -163,7 +163,8 @@ def ensure_jupyterlab_extensions(): Install the JupyterLab extensions we want. """ extensions = [ - '@jupyterlab/hub-extension' + '@jupyterlab/hub-extension', + '@jupyter-widgets/jupyterlab-manager' ] subprocess.check_output([ os.path.join(USER_ENV_PREFIX, 'bin/jupyter'), @@ -243,7 +244,9 @@ def ensure_user_environment(user_requirements_txt_file): # nbgitpuller for easily pulling in Git repositories 'nbgitpuller==0.6.1', # nbresuse to show people how much RAM they are using - 'nbresuse==0.3.0' + 'nbresuse==0.3.0', + # Most people consider ipywidgets to be part of the core notebook experience + 'ipywidgets==7.4.2' ]) if user_requirements_txt_file: