posit-dev / positron

Positron, a next-generation data science IDE
Other
2.23k stars 66 forks source link

NumPy-style docstrings do not render for all functions/methods #3692

Open david-cortes opened 1 month ago

david-cortes commented 1 month ago

Positron Version:

Positron Version: 2024.06.1 build 27 Code - OSS Version: 1.90.0 Commit: a893e5b282612ccb2200102957ac38d3c14e5196 Date: 2024-06-26T01:22:29.024Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Linux x64 6.1.0-21-amd64

Steps to reproduce the issue:

  1. Create a new Python source file and write the following:
    import numpy as np
    rng = np.random.default_rng()
  2. Execute the first line with e.g. Ctrl+Enter
  3. Get help for the method that is executed in the second line, for example through F1 or by executing this in the console:
    ?np.random.default_rng

What did you expect to happen?

Should render the NumPy-style docstrings correctly formatted, like it does for other functions: image

Actual behavior

Renders the docs as plain text, like this: image

Were there any error messages in the output or Developer Tools console?

No

seeM commented 1 month ago

Thank you for the report! I'm able to repro this as well.