Skip to content

Commit

Permalink
upgrade jupyterlab>4
Browse files Browse the repository at this point in the history
  • Loading branch information
Emma Ai committed Aug 5, 2024
1 parent 47d8da7 commit d79cda9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,22 @@ ENV LC_ALL=C.UTF-8 \
PATH=/env/bin:$PATH

USER $nb_user

# NOTE - JupyterLab extensions can now be distributed as prebuilt extensions and available to PyPI
RUN echo "Enable jupyter lab extensions" \
&& jupyter labextension install jupyterlab-topbar-extension jupyterlab-theme-toggle \
&& jupyter labextension list \
&& echo "...done"

RUN echo "Enable server extensions" \
&& jupyter server extension enable --py jupyterlab_iframe --sys-prefix \
&& jupyter server extension enable --py jupyter_resource_usage --sys-prefix \
&& jupyter server extension list \
&& jupyter lab build \
&& echo "...done"

RUN echo "Install AWS CLI v2" \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "/tmp/awscliv2.zip" \
&& unzip /tmp/awscliv2.zip -d /tmp \
&& unzip /tmp/awscliv2.zip -d /tmp > /dev/null \
&& /tmp/aws/install -i /env/bin/aws-cli -b /env/bin \
&& aws --version \
&& rm -f /tmp/awscliv2.zip \
Expand Down
20 changes: 9 additions & 11 deletions docker/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ dependencies:
# Scientific Stack
- gsl
- cgal-cpp
- cgal
- boost
- openmp
- muparser
Expand All @@ -178,7 +179,8 @@ dependencies:
- tensorflow>=2.16
- xgboost
- zarr
- bokeh=3.2.2
- bokeh
# - bokeh=3.2.2
- descartes
- matplotlib
- seaborn
Expand Down Expand Up @@ -211,22 +213,17 @@ dependencies:
- black
- python-jose
- ecdsa
- jupyter
- jupyterlab
- jupyterlab_code_formatter<3.0
- jupyterlab>=4.0
- jupyterlab_code_formatter<3.0 # Non-caught error in >= 3.0
- jupyterlab-spellchecker
- jupyterlab-code-snippets
- jupyterlab-dash
- jupyterlab-geojson
- jupyterlab-git
- jupyterlab-github
- jupyterlab_iframe
- jupyterlab_widgets
- jupyterlab-topbar
- jupyterlab-system-monitor
- jupyterhub
- jupytext<1.16
- jupyterlab_pygments<0.3.0
- jupyterhub=4.1.5 # Match hub version
- jupytext
- jupyterlab_pygments
- jupyter-resource-usage
- jupyter_server
- jupyter-server-proxy
Expand All @@ -241,6 +238,7 @@ dependencies:
- isort
- nbdime
- nbgitpuller
- notebook<7.0 # Compatible with nbconvert
- mypy
- prompt-toolkit # because of line_profiler/ipython
- nbconvert # because of jupyter_contrib_nbextensions
Expand Down
8 changes: 4 additions & 4 deletions docker/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
cognitojwt
nbval
cgal
line-profiler
jupyterlab-logout
jupyter-contrib-core
jupyter-contrib-nbextensions
jupyter-nbextensions-configurator
# pin for jupyterlab=3.x
jupyterlab-topbar-text==0.6.2
jupyterlab-logout==0.5.0
jupyterlab-code-snippets
jupyterlab-topbar-text
jupyterlab-logout
jupyterlab-theme-toggler

# ODC/DEA: these are installed in builder stage
otps
Expand Down

0 comments on commit d79cda9

Please sign in to comment.