How to use bat for output from python interactive session / IPython #3434
Replies: 2 comments
-
|
How does IPython decide to open the Markdown in |
Beta Was this translation helpful? Give feedback.
-
|
Yes, this should be possible, because IPython sends long For example: export PAGER='bat --language=md --style=plain'
export BAT_PAGER='less'Then restart IPython and try: ?np.arrayA few caveats:
So the short version is: yes, this is a pager configuration problem more than an IPython problem, and |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I use IPython (IPython 9.6.0 -- An enhanced Interactive Python) with ZSH, and when I type something like
?np.array, it openslessand the output is raw markdown. I'd like to get it to be formatted with bat. I installed bat and confirmed it worked by running it on a python file. The colorized output is exactly what I'm hoping to get when reading docstrings for python objects while in IPython. Any idea how I can do this?Beta Was this translation helpful? Give feedback.
All reactions