Skip to content

upgrade jupyter-server #1248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,8 @@ RUN pip install --upgrade dask && \
mkdir -p /etc/ipython/ && echo "c = get_config(); c.IPKernelApp.matplotlib = 'inline'" > /etc/ipython/ipython_config.py && \
# 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.
ln -sf /usr/lib/x86_64-linux-gnu/libpixman-1.so.0.34.0 /opt/conda/lib/libpixman-1.so.0.38.0 && \
# upgrade jupyter-server to version > 2.x
pip install --force-reinstall --no-deps jupyter_server>=2.* && \
/tmp/clean-layer.sh

RUN pip install setuptools==59.8.0 && pip install -e git+https://github.com/SohierDane/BigQuery_Helper#egg=bq_helper
Expand Down
15 changes: 15 additions & 0 deletions tests/test_jupyter_server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import os
import unittest


class TestJupyterServer(unittest.TestCase):
def test_version(self):
from packaging.version import parse as parse_version
from importlib.metadata import version as pckg_version

self.assertTrue(parse_version(pckg_version("jupyter_server")) >= parse_version("2.0"))

def test_terminals(self):
import jupyter_server_terminals

self.assertTrue(hasattr(jupyter_server_terminals, "version_info"))