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 57ee60e commit f8b8f2aCopy full SHA for f8b8f2a
ftplugin/python/ipy.vim
@@ -237,7 +237,10 @@ def update_subchannel_msgs(debug=False):
237
# %doctest_mode is on. In the future, IPython will send the
238
# execution_count on subchannel, so this will need to be updated
239
# once that happens
240
- s = "\nIn [00]: "
+ if 'execution_count' in m['content']:
241
+ s = "\nIn [%d]: "% m['content']['execution_count']
242
+ else:
243
+ s = "\nIn [00]: "
244
s += m['content']['code'].strip()
245
elif m['header']['msg_type'] == 'pyerr':
246
c = m['content']
0 commit comments