Skip to content

Commit

Permalink
switch base environment to requirements file
Browse files Browse the repository at this point in the history
and update several dependencies in the process (jupyterlab 1.1, notebook 6.0, etc.)
  • Loading branch information
minrk committed Oct 28, 2019
1 parent 3cea0cb commit 4a5a06f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
20 changes: 4 additions & 16 deletions tljh/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,22 +249,10 @@ def ensure_user_environment(user_requirements_txt_file):
'conda==4.5.8'
])

conda.ensure_pip_packages(USER_ENV_PREFIX, [
# JupyterHub + notebook package are base requirements for user environment
'jupyterhub==1.0.0',
'notebook==5.7.8',
# Install additional notebook frontends!
'jupyterlab==0.35.4',
'nteract-on-jupyter==2.0.7',
# 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',
# Most people consider ipywidgets to be part of the core notebook experience
'ipywidgets==7.4.2',
# Pin tornado
'tornado<6.0',
])
conda.ensure_pip_requirements(
USER_ENV_PREFIX,
os.path.join(HERE, 'requirements-base.txt'),
)

if user_requirements_txt_file:
# FIXME: This currently fails hard, should fail soft and not abort installer
Expand Down
17 changes: 17 additions & 0 deletions tljh/requirements-base.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# FIXME: a frozen version of this file should be used
# pinning only direct dependencies is a recipe for broken environments!

# JupyterHub + notebook package are base requirements for user environment
jupyterhub==1.0.*
notebook==6.0.*
# Install additional notebook frontends!
jupyterlab==1.1.*
nteract-on-jupyter==2.1.*
# nbgitpuller for easily pulling in Git repositories
nbgitpuller==0.7.*
# nbresuse to show people how much RAM they are using
nbresuse==0.3.*
# Most people consider ipywidgets to be part of the core notebook experience
ipywidgets==7.5.*
# Pin tornado
tornado<6

0 comments on commit 4a5a06f

Please sign in to comment.