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

Skip to content

Commit 6a0b1e1

Browse files
committed
sub_channel was renamed to iopub_channel in 1.0dev
1 parent 8980c55 commit 6a0b1e1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ftplugin/python/ipy.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ def km_from_string(s=''):
144144
return
145145
km.start_channels()
146146
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
147151

148152
# now that we're connect to an ipython kernel, activate completion
149153
# 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):
268272
"""
269273
if km is None or (not vim_ipython_is_open() and not force):
270274
return False
271-
msgs = km.sub_channel.get_msgs()
275+
msgs = km.iopub_channel.get_msgs()
272276
if debug:
273277
#try:
274278
# vim.command("b debug_msgs")

0 commit comments

Comments
 (0)