-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Thanks for this convenient plugin!
I use:
let g:markdown_runners = {'py' : 'ipython'}If I run the following py block
aI get:
^[[22;0t^[]0;IPython: inf2/inf2-notes^GPython 3.9.4 (default, Apr 20 2021, 15:51:38)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.23.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: ^[[0;31m---------------------------------------------------------------------------^[[0m
^[[0;31mNameError^[[0m Traceback (most recent call last)
^[[0;32m<ipython-input-1-3f786850e387>^[[0m in ^[[0;36m<module>^[[0;34m^[[0m
^[[0;32m----> 1^[[0;31m ^[[0ma^[[0m^[[0;34m^[[0m^[[0;34m^[[0m^[[0m
^[[0m
^[[0;31mNameError^[[0m: name 'a' is not defined
In [2]: Do you really want to exit ([y]/n)?
^[[23;0t
As far as I understand, vim does not interpret the ANSI color sequences like a terminal, but it is possible to open a terminal inside vim using :term. Is it possible to forward the filter output to a terminal window?
Lastly: a workaround in my case is to use:
let g:markdown_runners = {'py' : 'ipython --colors NoColor'}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels