From dd2364f915a32676f8f8437214f9cc0bcc0e53dc Mon Sep 17 00:00:00 2001 From: Blaise Li Date: Thu, 13 Feb 2025 12:39:08 +0100 Subject: [PATCH] Trying to apply further fix to pull request 1663. See https://github.com/ipython-contrib/jupyter_contrib_nbextensions/pull/1663#issuecomment-2248001870 --- .../nbconvert_support/execute_time.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jupyter_contrib_nbextensions/nbconvert_support/execute_time.py b/src/jupyter_contrib_nbextensions/nbconvert_support/execute_time.py index 53b920dbd..b2b813144 100644 --- a/src/jupyter_contrib_nbextensions/nbconvert_support/execute_time.py +++ b/src/jupyter_contrib_nbextensions/nbconvert_support/execute_time.py @@ -8,7 +8,9 @@ try: # notebook >= 5.0.0-rc1 - import notebook._tz as nbtz + #import notebook._tz as nbtz + # See https://github.com/ipython-contrib/jupyter_contrib_nbextensions/pull/1663#issuecomment-2248001870 + import jupyter_server._tz as nbtz except ImportError: # notebook < 5.0.0-rc1 import notebook.services.contents.tz as nbtz