question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jupyter does not provide correct completion suggestions

See original GitHub issue

Environment data

  • VS Code version: 1.67.2
  • Jupyter Extension version (available under the Extensions sidebar): v2022.4.1021342353
  • Python Extension version (available under the Extensions sidebar): v2022.6.2
  • OS (Windows | Mac | Linux distro) and version: Windows 11
  • Python and/or Anaconda version: 3.7.9
  • Type of virtual environment used: NA
  • Jupyter server running: Local

Expected behaviour

When typing as in .ipynb file, there should not be any suggestion just like typing in .py file .

expected

Actual behaviour

When typing as in .ipynb file, the icon for as is wrong and there are completion suggestions

actual

Steps to reproduce:

  1. Open a .ipynb file in vscode
  2. Type import requests as r in python cell

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
greazercommented, Jun 2, 2022

Perhaps consider adding a setting to disable jupyter completions.

1reaction
rchiodocommented, May 28, 2022

Sorry there’s no way to disable jupyter completions at the moment. The latest prerelease version should have this setting though: This is the latest version: Name: Jupyter Id: ms-toolsai.jupyter Description: Jupyter notebook support, interactive programming and computing that supports Intellisense, debugging and more. Version: 2022.5.1001491011 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter

Thank you very much, it works for me!

If you notice any slowdowns when executing, you might have to disable that setting. It tells the kernel to use Jedi for completions, but Jedi has performance issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found