Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11ed7ea

Browse files
committed
qtconsole package has been flattened.
Shim both IPython.qt and IPython.qt.console to the same place.
1 parent 5907ad9 commit 11ed7ea

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

IPython/qt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515
# Unconditionally insert the shim into sys.modules so that further import calls
1616
# trigger the custom attribute access above
1717

18-
sys.modules['IPython.qt'] = ShimModule(src='IPython.qt', mirror='qtconsole')
18+
sys.modules['IPython.qt'] = _qt = ShimModule(src='IPython.qt', mirror='qtconsole')
19+
sys.modules['IPython.qt.console'] = _console = ShimModule(src='IPython.qt.console', mirror='qtconsole')
20+
_qt.console = _console

0 commit comments

Comments
 (0)