-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Use sphinx to render docstring in contextual help #8581
Comments
Is there any progress on this? I tried using Rendering the docstring in the same way Spyder does it would be a significant quality of life improvement. I'm happy to help, is there something I can do? |
I would love to have this as well and think it would be really helpful, especially for novices learning JupyterLab. Some related issues/projects that might be helpful are: |
Thank you for the links. I saw someone mention writing a server extension, do you know if there's any project like that being developed? |
Hmm, I am not aware of any at the moment |
Well, there is https://github.com/jupyter/papyri and https://github.com/carreau/papyri-lab - it does not hook into the context help renderer yet it seems but it would certainly be possible. |
New thing https://github.com/krassowski/ipython-markdown-inspector makes IPython return Markdown-formatted docstrings. It requires IPython 8.21 and will be even better with 8.22 (once released). |
Problem
Rendering docstring using the numpydoc formatting could be significantly better using sphinx. For example, spyder "Help" panel is more readable particularly when the docstring contain latex. This should be useful to render cross-referencing to python objects.
For example, the contextual help of:
Jupyter lab contextual help:

Spyder help panel:

Proposed Solution
Use sphinx to render contextual help.
Additional context
See for example spyder help panel: https://docs.spyder-ide.org/help.html#understanding-help-modes
The text was updated successfully, but these errors were encountered: