From 111825e1208d9be155eb8ebbc0184334481a3865 Mon Sep 17 00:00:00 2001 From: "Jens H. Nielsen" Date: Thu, 14 Sep 2023 10:27:50 +0200 Subject: [PATCH] Fix import --- src/qcodes_loop/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qcodes_loop/__init__.py b/src/qcodes_loop/__init__.py index 92a9009..0df62d9 100644 --- a/src/qcodes_loop/__init__.py +++ b/src/qcodes_loop/__init__.py @@ -6,7 +6,7 @@ try: - _register_magic = qcodes.config.core.get('register_magic', False) + _register_magic = qcodes.config.core.get("register_magic", False) if _register_magic is not False: # get_ipython is part of the public api but IPython does # not use __all__ to mark this @@ -15,7 +15,7 @@ # Check if we are in IPython ip = get_ipython() if ip is not None: - from qcodes.utils.magic import register_magic_class + from qcodes_loop.utils.magic import register_magic_class register_magic_class(magic_commands=_register_magic) except ImportError: