Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8980c55 commit 6a0b1e1Copy full SHA for 6a0b1e1
1 file changed
ftplugin/python/ipy.vim
@@ -144,6 +144,10 @@ def km_from_string(s=''):
144
return
145
km.start_channels()
146
send = km.shell_channel.execute
147
+
148
+ #XXX: backwards compatability for IPython < 1.0
149
+ if not hasattr(km, 'iopub_channel'):
150
+ km.iopub_channel = km.sub_channel
151
152
# now that we're connect to an ipython kernel, activate completion
153
# machinery, but do so only for the local buffer if the user added the
@@ -268,7 +272,7 @@ def update_subchannel_msgs(debug=False, force=False):
268
272
"""
269
273
if km is None or (not vim_ipython_is_open() and not force):
270
274
return False
271
- msgs = km.sub_channel.get_msgs()
275
+ msgs = km.iopub_channel.get_msgs()
276
if debug:
277
#try:
278
# vim.command("b debug_msgs")
0 commit comments