Skip to content

Commit

Permalink
Merge pull request #1310 from ByteOfBrie/fix-ipython-import
Browse files Browse the repository at this point in the history
Fix ipython import
  • Loading branch information
TheJackiMonster authored Aug 11, 2024
2 parents 50b9fd4 + 92417c6 commit e66db6b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions manuskript/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,14 @@ def launch(arguments, app, MW = None):
# Support for IPython Jupyter QT Console as a debugging aid.
# Last argument must be --console to enable it
# Code reference :
# https://github.com/ipython/ipykernel/blob/master/examples/embedding/ipkernel_qtapp.py
# https://github.com/ipython/ipykernel/blob/master/examples/embedding/internal_ipkernel.py
# https://github.com/ipython/ipykernel/blob/main/examples/embedding/ipkernel_qtapp.py
# https://github.com/ipython/ipykernel/blob/main/examples/embedding/internal_ipkernel.py
if arguments.console:
try:
from IPython.lib.kernel import connect_qtconsole
try:
from IPython.lib.kernel import connect_qtconsole
except ImportError:
from ipykernel import connect_qtconsole
from ipykernel.kernelapp import IPKernelApp
# Only to ensure matplotlib QT mainloop integration is available
import matplotlib
Expand Down

0 comments on commit e66db6b

Please sign in to comment.