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 variable pane never finishes loading what my variables are in VS Code

See original GitHub issue

Environment data

  • VS Code version: Version: 1.41.1
  • Extension version (available under the Extensions sidebar):2020.2.59126-dev
  • OS and version: macOS Catalina 10.15.2 (19C57)
  • Python version (& distribution if applicable, e.g. Anaconda): python 3.7.6 64-bit (‘base’:conda)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
  • Relevant/affected Python packages and their versions: Jupyter
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info microsoft/vscode-python#3977): N/A

Expected behaviour

When I open the variable pane in Jupyter VS Code, it should eventually display the variables, but it gets stuck. The script I have is:


from collections import OrderedDict

od = OrderedDict([
    ('first',1)
])

od

Actual behaviour

Variables in variable pane are never loaded:

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

I know this is crucial but I am not sure how to reproduce it on another computer or if I am the only one with the issue. I just open jupyter and when I try to run cells and see the variables in the variable pane, it just never finishes loading the variables in my jupyter cell…

Logs (Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python))

Empty logs

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

I tried this but nothing interesting appeared…

SO: https://stackoverflow.com/questions/59921809/how-does-one-have-the-jupyter-variable-pane-in-vs-code-to-load-the-variables-in

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Jan 27, 2020

Can you try updating your build? You’re using an insider’s build and we’ve been modifying this code lately.

The latest works for me with your example.

0reactions
rchiodocommented, Jan 29, 2020

Yes. You can’t expand variable objects to see their structure. That’s this bug here: https://github.com/microsoft/vscode-python/issues/9628

However this bug which is about variables not expanding at all is fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How does one have the Jupyter variable pane in VS Code to ...
Can you try updating your build? I couldn't find an easy way to do this except by right clicking on the gear icon...
Read more >
VS Code tips — The Jupyter variables view - YouTube
The Jupyter variables view shows all variables in the current # Jupyter notebook session. Open it by clicking ` Variables ` in the...
Read more >
Python and Data Science Tutorial in Visual Studio Code
First select the Variables icon in the notebook's upper toolbar. A JUPYTER: VARIABLES pane will open at the bottom of VS Code.
Read more >
Vs code env variables - viviamaviaggia.it
App environmenti need to setup environment variable in visual code IDE for the ... In Windows, setting your PATH and environment variables can...
Read more >
Introducing a New Way to Search Your Code and Visual ...
For example, you can go to the exact location where a class, method, function, variable, etc. is defined instantly. Furthermore, your search ...
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