diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
index a6aaca61d501668da5b4c0f131403b892553b2fd..573871a0da961e945994a0c1879f08f1d3ebcfc1 100644
--- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
+++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
@@ -79,9 +79,7 @@
     "import pasha as psh\n",
     "import tabulate\n",
     "from IPython.display import Latex, Markdown, display\n",
-    "from extra_data import H5File, RunDirectory\n",
-    "from extra_data import RunDirectory, stack_detector_data, by_id\n",
-    "from extra_data import components\n",
+    "from extra_data import H5File, RunDirectory, by_id, components\n",
     "from extra_geom import JUNGFRAUGeometry\n",
     "from matplotlib.colors import LogNorm\n",
     "\n",
@@ -92,7 +90,6 @@
     "from cal_tools.tools import (\n",
     "    get_constant_from_db_and_time,\n",
     "    get_dir_creation_date,\n",
-    "    get_pdu_from_db,\n",
     "    map_seq_files,\n",
     "    write_compressed_frames,\n",
     ")\n",
@@ -195,7 +192,6 @@
     "        print(f\"Run is in burst mode.\\n\"\n",
     "              f\"Storage cell start: {sc_start:02d}\")\n",
     "except KeyError as e:\n",
-    "    sc_start = None\n",
     "    print(\"WARNING: KeyError while reading number of memory cells.\")\n",
     "    if mem_cells == 0:\n",
     "        memory_cells = 1\n",
@@ -876,8 +872,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "display(Markdown(\n",
-    "    f\"#### Bad pixels image for train {tid} and cellId {sc_start}\"))\n",
+    "display(Markdown(f\"#### Bad pixels image for train {tid}\"))\n",
     "\n",
     "fig = plt.figure(figsize=(18, 20))\n",
     "ax = fig.add_subplot(111)\n",