nrn icon indicating copy to clipboard operation
nrn copied to clipboard

`import neuron` modifies the `help` pager

Open JCGoran opened this issue 10 months ago • 0 comments

In Python, when calling help([OBJECT]), one usually gets the scrollable help (via less or some other program). This seems to stop working upon running import neuron, and all subsequent calls to help will be placed on stdout instead.

Affected versions: both stable (currently 8.2.4, installed from PyPI) and master.

To reproduce:

>>> help(list) # should use a pager
>>> import neuron
>>> help(list) # no longer using a pager

The relevant code seems to be here: https://github.com/neuronsimulator/nrn/blob/master/share/lib/python/neuron/doc.py#L40-L79

JCGoran avatar Apr 08 '24 11:04 JCGoran