We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21271cb commit 487a1f7Copy full SHA for 487a1f7
pysrc/juliacall/__init__.py
@@ -252,8 +252,12 @@ def jlstr(x):
252
CONFIG['autoload_extensions'] = choice('autoload_extensions', ['yes', 'no'])[0]
253
if CONFIG['autoload_extensions'] in {'yes', None}:
254
try:
255
+ # Get IPython `InteractiveShell` instance
256
get_ipython = sys.modules['IPython'].get_ipython
257
258
+ # This line is a check for the IPython kernel being loaded to the
259
+ # interactive shell, so that we don't activate for other types of
260
+ # interactive shells).
261
if 'IPKernelApp' not in get_ipython().config:
262
raise ImportError('console')
263
0 commit comments