How about this:
import pydoc
text="... some text ... "
pydoc.pager(text)
This (on my opensuse linux box) sends the text to a pager (‘less’ in my case), and works the same as calling “help(… python command…)” within the Python interpreter.
How about this:
import pydoc
text="... some text ... "
pydoc.pager(text)
This (on my opensuse linux box) sends the text to a pager (‘less’ in my case), and works the same as calling “help(… python command…)” within the Python interpreter.