Skip to content

Commit efdc949

Browse files
committed
python: Fixed enable_autoreload for IPython 9.0.2.
1 parent d03f9e6 commit efdc949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/inet/common/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def stop_execution(*args):
5252

5353
def enable_autoreload():
5454
ipython = IPython.get_ipython()
55-
ipython.magic("load_ext autoreload")
56-
ipython.magic("autoreload 2")
55+
ipython.run_line_magic("load_ext", "autoreload")
56+
ipython.run_line_magic("autoreload", "2")
5757

5858
_file_handler = None
5959

0 commit comments

Comments
 (0)