diff --git a/pyrpl/async_utils.py b/pyrpl/async_utils.py index 72ad75f3..9e562168 100644 --- a/pyrpl/async_utils.py +++ b/pyrpl/async_utils.py @@ -48,7 +48,7 @@ try: from IPython import get_ipython IPYTHON = get_ipython() - IPYTHON.magic("gui qt") + IPYTHON.run_line_magic("gui qt") except BaseException as e: logger.debug('Could not enable IPython gui support: %s.' % e)