TerminalPager.jl is invaluable for reading long docstrings or outputs, it’s practically the first package I install in any new Julia version. A lot of people also use it for viewing tabular data (eg. DataFrames), though I generally go straight to Jupyter or Pluto for those.
My preferred way of using TerminalPager is to use the |
key to change the REPL mode: it shifts into pager>
mode after that, and any output that occurs in that mode, if it’s longer than one screen length, gets displayed in pager interface i.e. like less
on Linux where you can scroll up and down, search, etc. If you press ?
when you’re in pager mode, you get to pager-help mode where the docstrings are displayed the same way. Because Julia’s functions often have many methods, there ends up being screenfuls of docstrings even if each individual doc is pretty short. So TerminalPager makes those docs a lot more manageable and easier to parse.
(Speculator seems to be Jakob’s own package, that I also learnt about from this thread, so I’ll just link to its announcement post that I found today.)