From 77963957127ce7c08602d857ad257e9896fab97b Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas.kluyver@xfel.eu>
Date: Wed, 28 Feb 2024 17:01:46 +0000
Subject: [PATCH] list_running_servers moved from notebook package to
 jupyter_server

---
 setup.py               | 2 +-
 src/cal_tools/tools.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index f3e60d2fa..1f3803088 100644
--- a/setup.py
+++ b/setup.py
@@ -74,6 +74,7 @@ install_requires = [
         "jupyter-core==5.7.1",
         "jupyter_client==8.6.0",
         "jupyter_console==6.6.3",
+        "jupyter-server==2.12.5",
         "kafka-python==2.0.2",
         "lxml==5.1.0",
         "markupsafe==2.1.5",
@@ -83,7 +84,6 @@ install_requires = [
         "nbconvert==7.16.1",
         "nbformat==5.9.2",
         "nbparameterise==0.6",
-        "notebook==7.1.1",
         "numpy==1.26.4",
         "pasha==0.1.1",
         "pillow==10.3.0",
diff --git a/src/cal_tools/tools.py b/src/cal_tools/tools.py
index 33425c118..600a79e4d 100644
--- a/src/cal_tools/tools.py
+++ b/src/cal_tools/tools.py
@@ -23,7 +23,7 @@ import yaml
 import zmq
 from extra_data import H5File, RunDirectory
 from iCalibrationDB import ConstantMetaData, Versions
-from notebook.notebookapp import list_running_servers
+from jupyter_server.serverapp import list_running_servers
 
 from .ana_tools import save_dict_to_hdf5
 
-- 
GitLab