From 110901ec8a02d43be1838532d031f24782c0e0ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lum=C3=ADr=20=27Frenzy=27=20Balhar?= Date: Tue, 19 Dec 2023 20:41:55 +0100 Subject: [PATCH] Import CellExecutionError from nbclient, not nbconvert To make sciunit compatible with nbconvert 7.13.0. --- sciunit/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sciunit/utils.py b/sciunit/utils.py index 5d5f27e..b48602a 100644 --- a/sciunit/utils.py +++ b/sciunit/utils.py @@ -26,7 +26,7 @@ import nbformat from IPython.display import HTML, display from nbconvert.preprocessors import ExecutePreprocessor -from nbconvert.preprocessors.execute import CellExecutionError +from nbclient.exceptions import CellExecutionError from quantities.dimensionality import Dimensionality from quantities.quantity import Quantity