Skip to content

Commit f8b8f2a

Browse files
committed
In prompt should have execution count
1 parent 57ee60e commit f8b8f2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ftplugin/python/ipy.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ def update_subchannel_msgs(debug=False):
237237
# %doctest_mode is on. In the future, IPython will send the
238238
# execution_count on subchannel, so this will need to be updated
239239
# once that happens
240-
s = "\nIn [00]: "
240+
if 'execution_count' in m['content']:
241+
s = "\nIn [%d]: "% m['content']['execution_count']
242+
else:
243+
s = "\nIn [00]: "
241244
s += m['content']['code'].strip()
242245
elif m['header']['msg_type'] == 'pyerr':
243246
c = m['content']

0 commit comments

Comments
 (0)