Skip to content
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

No docstrings in Jupyter Notebooks #2652

Closed
jqluisneumann opened this issue Nov 21, 2019 · 8 comments
Closed

No docstrings in Jupyter Notebooks #2652

jqluisneumann opened this issue Nov 21, 2019 · 8 comments
Assignees

Comments

@jqluisneumann
Copy link

I am also encountered the same (similar issue). On a python file, I get the full docstrings:
image
image

But in a jupyter notebook, I don't get the docstrings:
image
image

Steps to cause the bug to occur

  1. Start VSCode, create a python file. Import numpy, docstring behave as expected.
  2. Open existing ipynb file, do original imports (numpy, matplotlib, pandas). Intelissense partially work, no docstrings.

Your Jupyter and/or Python environment

  • Jupyter server running: Local
  • Extension version: 2019.11.49689
  • VS Code version: 1.40.1
  • Setting python.jediEnabled: true
  • Python and/or Anaconda version: 3.7
  • OS: Windows
  • Virtual environment: conda

Developer Tools Console Output

In my console, I see no errors, other than:
[Embedded Page] Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq
webviewElement.ts:241
[Embedded Page] Failed to construct 'Worker': Script at 'vscode-resource://file///c%3A/Users/USERNAME/.vscode/extensions/ms-python.python-2019.11.49689/out/datascience-ui/native-editor/editor.worker.js' cannot be accessed from origin 'null'.

@canwaf
Copy link

canwaf commented Nov 21, 2019

Same, my environment is also exactly the same as @jqluisneumann.

@rchiodo rchiodo closed this as completed Nov 21, 2019
@rchiodo
Copy link
Contributor

rchiodo commented Nov 21, 2019

Sorry that last comment was not correct.

This is likely some setting on the monaco editor that we're not honoring. It would be helpful if you could paste the contents of your 'settings.json' file.

Thanks.

@rchiodo rchiodo reopened this Nov 21, 2019
@tyeoneill
Copy link

Same

@jqluisneumann
Copy link
Author

The contents of my setting.json file are below. Please note that when i encountered the issue, I first tried to update my jedi package using conda, and then add it to "python.jediPath". That didn't make a difference, but I may have pasted the incorrect path (as in need to go a level deeper or something like that).

{
"window.zoomLevel": 0,
"python.pythonPath": "C:\Users\username\AppData\Local\Continuum\anaconda3\python.exe",
"editor.renderControlCharacters": true,
"breadcrumbs.enabled": false,
"editor.minimap.enabled": true,
"editor.renderWhitespace": "all",
"vsicons.dontShowNewVersionMessage": true,
"workbench.colorTheme": "Visual Studio Light",
"editor.fontSize": 12,
"python.jediPath": "C:\Users\username\AppData\Local\Continuum\anaconda3\pkgs\jedi-0.15.1-py37_0\Lib\site-packages"
}

@IanMatthewHuff IanMatthewHuff self-assigned this Jan 14, 2020
@IanMatthewHuff
Copy link
Member

Note for validation this is Jedi only. VCLS already had docstrings. Also the jedi ones can take a small bit of time to load as they are fetched lazy.

@rchiodo
Copy link
Contributor

rchiodo commented Feb 3, 2020

Validated.

@rchiodo rchiodo closed this as completed Feb 3, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 10, 2020
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@abdulfatir
Copy link

I'm facing this issue too. Has this been fixed?

@rchiodo
Copy link
Contributor

rchiodo commented Feb 3, 2021

@abdulfatir Sorry if you're seeing this now, it's a new issue. Can you open a new issue with repro steps? Thanks.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants