We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f5ea8 commit 279289eCopy full SHA for 279289e
src/zenml/utils/notebook_utils.py
@@ -45,10 +45,6 @@ def get_active_notebook_path() -> Optional[str]:
45
global _ACTIVE_NOTEBOOK_PATH
46
47
if _ACTIVE_NOTEBOOK_PATH == _UNINITIALIZED:
48
- import ipynbname
49
-
50
- from zenml.utils import source_utils
51
52
if path := os.environ.get(ENV_ZENML_NOTEBOOK_PATH, None):
53
logger.info(
54
"Using notebook path from environment variable: %s", path
@@ -57,6 +53,8 @@ def get_active_notebook_path() -> Optional[str]:
57
_ACTIVE_NOTEBOOK_PATH = path
58
else:
59
55
from IPython import get_ipython
56
+ import ipynbname
+ from zenml.utils import source_utils
60
61
ip = get_ipython()
62
if "__vsc_ipynb_file__" in ip.user_ns:
0 commit comments