From 82e7fa6cdceca17ff863865fd9c8b8290da99e04 Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Fri, 29 Jun 2018 00:27:00 -0700 Subject: [PATCH] Add nteract to base install too - This gives us two alternative notebook frontends - Also install as many things from pip as possible, to keep consistency in the user environment --- tljh/installer.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tljh/installer.py b/tljh/installer.py index 5713eb6..bc88936 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -82,8 +82,15 @@ with open('/etc/sudoers.d/jupyterhub-admins', 'w') as f: conda.ensure_conda_env(USER_ENV_PREFIX) conda.ensure_conda_packages(USER_ENV_PREFIX, [ - 'jupyterhub==0.9.0', - 'notebook==5.5.0', - 'jupyterlab==0.32.1', + # Conda's latest version is on conda much more so than on PyPI. 'conda==4.5.4' ]) + +conda.ensure_pip_packages(USER_ENV_PREFIX, [ + # JupyterHub + notebook package are base requirements for user environment + 'jupyterhub==0.9.0', + 'notebook==5.5.0', + # Install additional notebook frontends! + 'jupyterlab==0.32.1', + 'nteract-on-jupyter==1.8.1' +])