Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import neuron modifies the help pager #2821

Open
JCGoran opened this issue Apr 8, 2024 · 0 comments
Open

import neuron modifies the help pager #2821

JCGoran opened this issue Apr 8, 2024 · 0 comments
Labels

Comments

@JCGoran
Copy link
Contributor

JCGoran commented Apr 8, 2024

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 JCGoran added the bug label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant