From e8e5df10360ca8d15a33c8dcf938d6c4f3f3151e Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Fri, 8 Oct 2021 11:43:36 +0100
Subject: [PATCH] No longer need to modify global notebooks dictionary

---
 src/xfel_calibrate/nb_args.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/xfel_calibrate/nb_args.py b/src/xfel_calibrate/nb_args.py
index c8b9f7ebf..e4ab7786f 100644
--- a/src/xfel_calibrate/nb_args.py
+++ b/src/xfel_calibrate/nb_args.py
@@ -452,8 +452,7 @@ def parse_argv_and_load_nb(argv) -> Tuple[Dict, NBDetails]:
 
         user_notebook_args, _ = user_notebook_parser.parse_known_args(argv[1:])
 
-        nb_info["notebook"] = user_notebook_path.format(**vars(user_notebook_args))
-        notebook = nb_info["notebook"]
+        notebook = user_notebook_path.format(**vars(user_notebook_args))
 
     concurrency = nb_info.get("concurrency", {'parameter': None})
 
-- 
GitLab