Add ipywidgets to base installation

This commit is contained in:
yuvipanda
2018-12-22 11:06:43 -08:00
parent ae9bf702f1
commit 600bf225f2
2 changed files with 6 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ def test_nbextensions():
assert '{} \x1b[32m enabled \x1b[0m'.format(e) in proc.stdout.decode() 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 # 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(): def test_labextensions():

View File

@@ -163,7 +163,8 @@ def ensure_jupyterlab_extensions():
Install the JupyterLab extensions we want. Install the JupyterLab extensions we want.
""" """
extensions = [ extensions = [
'@jupyterlab/hub-extension' '@jupyterlab/hub-extension',
'@jupyter-widgets/jupyterlab-manager'
] ]
subprocess.check_output([ subprocess.check_output([
os.path.join(USER_ENV_PREFIX, 'bin/jupyter'), 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 for easily pulling in Git repositories
'nbgitpuller==0.6.1', 'nbgitpuller==0.6.1',
# nbresuse to show people how much RAM they are using # 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: if user_requirements_txt_file: