[Python] Help viewer displays function docstrings as unreadable single block #8741
-
Description: When viewing Python function documentation in Positron (e.g., Example of current display:
All parameters are concatenated without line breaks, indentation, or clear separation. Expected Behavior: Ideally, the help viewer should format the docstrings with each parameter on a separate line or paragraph, for example:
This would greatly improve readability, especially when working with scientific Python packages like Scanpy, scikit-learn, or pandas. Notes:
Reproduction Steps:
Environment: Positron Version: 2025.07.0 (user setup) build 204 Thank you for building Positron—this is a small but meaningful improvement that would help users working with complex scientific Python APIs. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
By the way, the help content displays correctly when I hover my mouse over the function name ![]() |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks for the report, @louhao1129! I added this to #5247 (comment) where we are tracking further improvements to Python Help. I'll highlight that scanpy uses pretty atypical formatting for its docstrings (see for example) so this one may be tougher to deal with. |
Beta Was this translation helpful? Give feedback.
Thanks for the report, @louhao1129! I added this to #5247 (comment) where we are tracking further improvements to Python Help.
I'll highlight that scanpy uses pretty atypical formatting for its docstrings (see for example) so this one may be tougher to deal with.