diff --git a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
index b1a033fa3566093782e5d2c39c21cc7a74cad069..22ee77702d3b9e17891e95e63686c2a7eb083f21 100644
--- a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
+++ b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
@@ -77,13 +77,12 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "from datetime import datetime\n",
-    "\n",
-    "import dateutil.parser\n",
     "import os\n",
     "from collections import OrderedDict\n",
+    "from datetime import datetime\n",
     "from typing import Tuple\n",
     "\n",
+    "import dateutil.parser\n",
     "import h5py\n",
     "import matplotlib\n",
     "import numpy as np\n",
@@ -98,16 +97,32 @@
     "\n",
     "import multiprocessing\n",
     "\n",
-    "from cal_tools.agipdlib import (get_acq_rate, get_bias_voltage, get_gain_mode,\n",
-    "                                get_gain_setting, get_num_cells)\n",
+    "from cal_tools.agipdlib import (\n",
+    "    get_acq_rate,\n",
+    "    get_bias_voltage,\n",
+    "    get_gain_mode,\n",
+    "    get_gain_setting,\n",
+    "    get_num_cells,\n",
+    ")\n",
     "from cal_tools.enums import AgipdGainMode\n",
-    "from cal_tools.plotting import (create_constant_overview, plot_badpix_3d,\n",
-    "                                show_overview, show_processed_modules)\n",
-    "from cal_tools.tools import (get_dir_creation_date, get_from_db,\n",
-    "                             get_pdu_from_db, get_random_db_interface,\n",
-    "                             get_report, map_gain_stages, module_index_to_qm,\n",
-    "                             run_prop_seq_from_path, save_const_to_h5,\n",
-    "                             send_to_db)\n",
+    "from cal_tools.plotting import (\n",
+    "    create_constant_overview,\n",
+    "    plot_badpix_3d,\n",
+    "    show_overview,\n",
+    "    show_processed_modules,\n",
+    ")\n",
+    "from cal_tools.tools import (\n",
+    "    get_dir_creation_date,\n",
+    "    get_from_db,\n",
+    "    get_pdu_from_db,\n",
+    "    get_random_db_interface,\n",
+    "    get_report,\n",
+    "    map_gain_stages,\n",
+    "    module_index_to_qm,\n",
+    "    run_prop_seq_from_path,\n",
+    "    save_const_to_h5,\n",
+    "    send_to_db,\n",
+    ")\n",
     "from iCalibrationDB import Conditions, Constants, Detectors"
    ]
   },