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.

Interactive Window can't connect to the conda environment after the latest update

See original GitHub issue

Environment data

  • VS Code version: 1.71.0
  • Jupyter Extension version (available under the Extensions sidebar): v2022.8.1002431955
  • Pylance Extension version (available under the Extensions sidebar): v2022.8.50
  • Windows version: 10 21H2 19044.1889
  • Python and/or Anaconda version: 3.10.5 , 1.8.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): Conda
  • Jupyter server running: Local

Expected behaviour

I expected to connect successfully to the environment and run codes.

Actual behaviour

After the new update, I can’t use Interactive Window in VSCode. It stuck on connecting to the environment: image

Steps to reproduce:

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

  1. XXX

Logs

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

XXX

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amungercommented, Sep 8, 2022

great to hear, thanks for the update!

1reaction
shayandavoodiicommented, Sep 8, 2022

@shayandavoodii = Does that same conda environment work when you try to use it for a notebook (command jupyter: create notebook)? The only package I know of that we need is IPykernel which should get installed when it is first launched, so you could try re-installing that package if it doesn’t work in a notebook either.

Hi, No, it wasn’t working for a couple of days. I found out that the problem was rising where my conda environment got corrupted. So, Firstly I removed the ipython package using conda remove ipython in the activated environment. Secondly, I installed the ipython and ipykernel using conda install -c conda-forge <PKG_NAME>. Now the interactive window is working on the environment. Thanks. I’ll close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

interactive window not opening in other conda environment
Some how I am unable to open python interactive window in other conda environment. This works perfectly fine in base environment, ...
Read more >
VS Code Python Interactive Window Cannot find Conda Env
1- Click Start Menu Windows logo, type "path" click on "edit the system environment labels" · 2- Under PATH for User Variables, if...
Read more >
Work in Windows Subsystem for Linux with Visual Studio Code
This tutorial walks you through enabling Windows Subsystem for Linux (WSL) and running Visual Studio Code in WSL using the WSL extension.
Read more >
Manage Python environments and interpreters - Visual Studio ...
Use the Python Environments window to manage global, virtual, and conda environments. Install Python interpreters and packages and assign ...
Read more >
VS Code: Shift+Enter does not send code to Python Interactive
If you go to the Settings( Ctrl + , ) you can see the search bar. There, put in 'Send Selection To Interactive...
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