mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-09-20 11:37:32 +12:00
Merge pull request #1310 from ByteOfBrie/fix-ipython-import
Fix ipython import
This commit is contained in:
commit
e66db6bf9f
1 changed files with 6 additions and 3 deletions
|
@ -201,11 +201,14 @@ def launch(arguments, app, MW = None):
|
||||||
# Support for IPython Jupyter QT Console as a debugging aid.
|
# Support for IPython Jupyter QT Console as a debugging aid.
|
||||||
# Last argument must be --console to enable it
|
# Last argument must be --console to enable it
|
||||||
# Code reference :
|
# Code reference :
|
||||||
# https://github.com/ipython/ipykernel/blob/master/examples/embedding/ipkernel_qtapp.py
|
# https://github.com/ipython/ipykernel/blob/main/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/internal_ipkernel.py
|
||||||
if arguments.console:
|
if arguments.console:
|
||||||
try:
|
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
|
from ipykernel.kernelapp import IPKernelApp
|
||||||
# Only to ensure matplotlib QT mainloop integration is available
|
# Only to ensure matplotlib QT mainloop integration is available
|
||||||
import matplotlib
|
import matplotlib
|
||||||
|
|
Loading…
Reference in a new issue