vscode-jupyter: UndefinedVariable in interactive window

Environment data

  • Language Server version: Pylance v2023.2.20
  • Jupyter extension: v2023.1.2010391206
  • OS and version: macos 13.2 (22D49)
  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.12
Version: 1.75.1
Commit: 441438abd1ac652551dbe4d408dfcec8a499b8bf
Date: 2023-02-08T21:34:01.965Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Darwin arm64 22.3.0
Sandboxed: No

Code Snippet

XXX

Repro Steps

CS-P8BCwjC9@2x

I have also tried with the pre-release of Jupyter extension CS-TY4ywsJp@2x

Expected behavior

XXX

Actual behavior

XXX

Logs

log.txt

XXX

https://github.com/microsoft/pylance-release/issues/3661

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 15 (8 by maintainers)

Most upvoted comments

@StevenLi-DS, I believe that the pre-release Jupyter builds require VS Code Insiders.

@StevenLi-DS, the second issue is now fixed. Please give it a try in the next Jupyter prerelease build.

@StevenLi-DS, thanks for the log. I’m able to repro this now and will investigate.

@StevenLi-DS, the fix is currently available in Jupyter’s prerelease builds. It should appear in their release builds in a couple weeks. I believe that, aside from hotfixes, new stable builds of Jupyter are typically released to the public on the first Thursday of each month.

You could watch the Python blog for the April release announcement, similar to this one from March: https://devblogs.microsoft.com/python/python-in-visual-studio-code-march-2023-release/

Thanks. I’m able to repro this now. Not sure why I wasn’t able to before.

It’s interesting that df is shown in the completion list, but still flagged as undefined.