This question already has an answer here:
- How to use pipe in IPython 3 answers
I often need to view long text variables in iPython. I typically use scroll buffers for this, but I really want a pager with searching. Does iPython have a way to view long variables in a pager (e.g., less)? If not, I can certainly contrive a way to do this with !.
Note: I'm not asking how to set up PAGER generally. ?, ??, %pdoc, etc all work fine with a less. I'm asking specifically for paging variables.
Answer: %page
Example usage:
Answer from How to use Pipe in ipython