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

Skip to content

Commit 55fd90c

Browse files
committed
minimal change for non-python kernels to operate
1 parent 50023db commit 55fd90c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ftplugin/python/ipy.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,8 @@ def set_pid():
568568
pid = int(child['content']['user_variables']['_pid'])
569569
except TypeError: # change in IPython 1.0.dev moved this out
570570
pid = int(child['content']['user_variables']['_pid']['data']['text/plain'])
571+
except KeyError: # change in IPython 1.0.dev moved this out
572+
echo("Could not get PID information, kernel not running Python?")
571573
return pid
572574

573575

0 commit comments

Comments
 (0)