Skip to content

Commit 2a0e3df

Browse files
committed
upgrade jupyter-server
1 parent 7e2b36e commit 2a0e3df

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Dockerfile.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,9 @@ RUN pip install --upgrade dask && \
593593
mkdir -p /etc/ipython/ && echo "c = get_config(); c.IPKernelApp.matplotlib = 'inline'" > /etc/ipython/ipython_config.py && \
594594
# Temporary patch for broken libpixman 0.38 in conda-forge, symlink to system libpixman 0.34 untile conda package gets updated to 0.38.5 or higher.
595595
ln -sf /usr/lib/x86_64-linux-gnu/libpixman-1.so.0.34.0 /opt/conda/lib/libpixman-1.so.0.38.0 && \
596-
/tmp/clean-layer.sh
596+
/tmp/clean-layer.sh && \
597+
# upgrade jupyter-server to version > 2.x
598+
pip install --force-reinstall --no-deps jupyter_server>=2.*
597599

598600
RUN pip install setuptools==59.8.0 && pip install -e git+https://github.com/SohierDane/BigQuery_Helper#egg=bq_helper
599601

tests/test_jupyter_server.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import os
2+
import unittest
3+
4+
5+
class TestJupyterServer(unittest.TestCase):
6+
7+
8+
def test_version(self):
9+
from packaging.version import parse as parse_version
10+
from importlib.metadata import version as pckg_version
11+
self.assertTrue(parse_version(pckg_version('jupyter_server')) >= parse_version('2.0'))
12+
13+
def test_terminals(self):
14+
import jupyter_server_terminals
15+
16+

0 commit comments

Comments
 (0)