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.

Duplicated intellisense in .ipynb files

See original GitHub issue

Environment data

  • Language Server version: v2022.11.11
  • OS and version: MacOS
  • Jupyter Extension version: v2022.9.1202862440
  • Python Extension version: v2022.18.1
  • Python version: 3.9

Code Snippet

import numpy as np

foo = np.random.rand(5, 2, 4)

print(foo)

Expected behaviour

Show only single intellisense/suggestion/information.

Actual behaviour

Show intellisense/suggestion/information twice. image image

Repro Steps

  1. Create a folder and create a new ipynb file.
  2. Code and point to some tokens or package names.

P.S.

There have been some discussions (https://github.com/microsoft/pylance-release/issues/3027) about this issue and according to @debonte, pylance will not support python.pylanceLspNotebooksEnabled option and remove old notebooks implementation (it seems the option has been removed but the jupyter implementation remains old), I still think this is an abnormal behavior. So how to fix this or use the new notebooks implementation?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

9reactions
rchiodocommented, Nov 7, 2022

Oh this is fixed in the prerelese version. If you upgrade the Jupyter Extension to

Name: Jupyter Id: ms-toolsai.jupyter Description: Jupyter notebook support, interactive programming and computing that supports Intellisense, debugging and more. Version: 2022.11.1003131031 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter

The problem goes away.

4reactions
SjoerdVcommented, Nov 23, 2022

Oh this is fixed in the prerelese version. If you upgrade the Jupyter Extension to

Name: Jupyter Id: ms-toolsai.jupyter Description: Jupyter notebook support, interactive programming and computing that supports Intellisense, debugging and more. Version: 2022.11.1003131031 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter

The problem goes away.

B.t.w. latest pre-release version (v2022.11.1003291043) will not start, but the exact version mentioned by @rchiodo works! And fixes the duplicate symbols issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicated intellisense in .ipynb files · Issue #11938 - GitHub
I found the same problem. After changing only the python version from 2022.18.1 to 2022.16.1, the duplicate do disappear by now. Thanks for...
Read more >
Jupyter notebook autocomplete showing duplicate options
Jupyter notebook's autocomplete seems working, but somehow it will show duplicate options for the method. For example below: np.allclose ...
Read more >
Notebooks — JupyterLab 3.6.0b0 documentation
Jupyter notebooks are documents that combine live runnable code with narrative text (Markdown), equations (LaTeX), images, interactive visualizations and other ...
Read more >
Jupyter Notebook Autocomplete Intellisense and Menu ...
In this video, Jupyter Notebook, Autocomplete, and Intellisense feature, and Menu Shortcuts Tutorial for Machine Learning is discussed.
Read more >
Jupyter Notebook Users Manual.ipynb - Bryn Mawr College
It allows you to paste the duplicated cell from your clipboard into your notebook. These buttons allow you to move the location of...
Read more >

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