-
Notifications
You must be signed in to change notification settings - Fork 372
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
Fix PyNest help and helpdesk commands #1926
Conversation
It works with curl and in NEST Desktop. That is great. Thanks! However, I have to execute command Is it on purpose? |
@babsey: Thanks for testing so quickly and for your feedback :-) We might have to point out the need for Regarding the missing help files:
@terhorstd: What's your opinion on the last point here? Rename all files (and live with file names that are inconsistent with the contained classes' names) or add enable the doc extractor to process a filename hint in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jougs Thanks! I will wait with a full review until #1843 is merged, since that should reduce the delta quite a bit. I added one comment below.
And then a general question: Most users will be online most of the time. Why not open the helpdesk at readthedocs? The one downside is that open_new()
does not tell you if the browser was able to open the webpage, one would have to check that in some other way.
Replying to @heplesser:
I would think that opening the browser worked reliably enough (at least if we do it right, i.e. using the Replying to @babsey:
I've added yet another suggestion to #1905, which would remove the requirement for calling |
Good point, let's leave it as it is. |
@jougs I just took at look at the help and it seems to work well for me too. Thanks for all your work on that. I know there is still ongoing discussion about how On a slightly different note, when one prints nest.help(), you get a basic list of a few commands, but I was wondering if it would be helpful to add at least a specific example for getting the model info: |
@jessica-mitchell: I've implemented your suggestion in 97dc9c3. Thanks! |
@jougs Works nicely for me now :). I sent you a PR with some touch-ups for this one, hope you'll like it. |
Revised help info and prettified error message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jougs Thanks, it's working nicely. I like the output on the nest.help(). My only concern is that it's not obvious you need to make html
to get help working on the CLI (unless you didn't run it, and the error pops up) but maybe we should add something to the installation instructions and the output after cmake
…o fix-pynest-help
@jessica-mitchell: the broken link is fixed by commit d7e2006. This PR thus also fixes #1961. |
@lekshmideepu: sorry to bother you with this, but could you please have a look at the failing GitHub Action jobs? It seems that some of the sources for |
Just a brief update: @jessica-mitchell and I agreed to address the image links in a separate PR so that the graphics can work sooner rather than later. #1979 fixes them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no further changes, thanks
This fixes #1904 by making
helpdesk()
open a link to the Sphinx-generated HTML help index page and thehelp()
function operate on the reStructuredText files extracted from the models. I've also simplified the handling of the pager by just using the one provided bypydoc
instead of from SLI. All pertaining documentation files have been updated.This PR is based on the branch behind #1843 and should thus not be merged before that. For the same reason, I'm opening this in draft mode, as the respective reviews should happen independently and this one is currently a bit too cluttered for this.
@babsey: can you maybe also quickly give this a try in the context of NEST Desktop? Thanks!