Join GitHub today
Fix of issue 246 - Make help and helpdesk more robust #688
With this pull request, NEST uses only Python for the help system if you are on the Python level.
In jupyter notebooks
If you use
This pull request is a fix for issue #246.
@steffengraber I am testing now and here are some experiences:
if 'NEST_INSTALL_DIR' not in os.environ: print('NEST help needs to know where NEST is installed. Please source nest_vars.sh or defined NEST_INSTALL_DIR manually.') return
nest.helpdesk() works fine at my workstation. When I call
nest.help('iaf_psc_alpha') or any NEST command I end up with the following error
Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../nest-fix246.install/lib64/python2.7/site-packages/nest/lib/hl_api_helper.py", line 234, in stack_checker_func return f(*args, **kwargs) File ".../nest-fix246.install/lib64/python2.7/site-packages/nest/lib/hl_api_info.py", line 90, in help pdoc(hlpobj, pager) File ".../nest-fix246.install/lib64/python2.7/site-packages/nest/lib/hl_api_helper.py", line 521, in pdoc proc = subprocess.Popen([pager, objf]) File "/usr/lib64/python2.7/subprocess.py", line 709, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1326, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
Am I using it wrong, is this related to something already mentioned by @heplesser or another bug?
@steffengraber I updated python to 2.7.13 and did a new clean build, but the error remains the same. I also noticed that if I enter any object that does not exist (as for example
It works for me now---thanks! There are just a few little things to clean up, see detailed comments.