mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
switch base environment to requirements file
and update several dependencies in the process (jupyterlab 1.1, notebook 6.0, etc.)
This commit is contained in:
@@ -272,22 +272,10 @@ def ensure_user_environment(user_requirements_txt_file):
|
|||||||
'conda==' + conda_version
|
'conda==' + conda_version
|
||||||
])
|
])
|
||||||
|
|
||||||
conda.ensure_pip_packages(USER_ENV_PREFIX, [
|
conda.ensure_pip_requirements(
|
||||||
# JupyterHub + notebook package are base requirements for user environment
|
USER_ENV_PREFIX,
|
||||||
'jupyterhub==1.0.0',
|
os.path.join(HERE, 'requirements-base.txt'),
|
||||||
'notebook==5.7.8',
|
)
|
||||||
# Install additional notebook frontends!
|
|
||||||
'jupyterlab==1.2.6',
|
|
||||||
'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',
|
|
||||||
])
|
|
||||||
|
|
||||||
if user_requirements_txt_file:
|
if user_requirements_txt_file:
|
||||||
# FIXME: This currently fails hard, should fail soft and not abort installer
|
# FIXME: This currently fails hard, should fail soft and not abort installer
|
||||||
|
|||||||
17
tljh/requirements-base.txt
Normal file
17
tljh/requirements-base.txt
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user