Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hitting run / debug cell in interactive python script does not have any effect in remote VM #7424

Closed
jzazo opened this issue Sep 6, 2021 · 8 comments
Labels
bug Issue identified by VS Code Team member as probable bug interactive-window Impacts interactive window verified Verification succeeded

Comments

@jzazo
Copy link

jzazo commented Sep 6, 2021

Environment data

  • VS Code version: 1.60.0
  • Jupyter Extension version: v2021.8.2031190714
  • Python Extension version: v2021.9.1191016588
  • OS (Windows | Mac | Linux distro) and version: Ubuntu 20.04
  • Python and/or Anaconda version: Python 3.8.5
  • Type of virtual environment used: pipenv, version 2018.11.26
  • Jupyter server running: Remote

Expected behaviour

I have a python script with # %% cells. I click Run Cell or Debug Cell and I expect the cell to run in a newly opened tab.

Actual behaviour

New tab opens, wrong kernel is loaded (w.r.t. the script's environment). I change the kernel to correct one, hit Run Cell and nothing happens. After a few clicks I get a 1 cells were canceled due to an error in the previous cell. If I copy the cell to Execute code prompt, code runs correctly, but not from script file.

This was working fine until latest August update.

Steps to reproduce:

  1. Just running a cell in a remote VM using interactive python using a custom kernel.
@jzazo jzazo added the bug Issue identified by VS Code Team member as probable bug label Sep 6, 2021
@joyceerhl
Copy link
Contributor

Just to confirm, are you connected to a remote Jupyter serveror are you using a Remote extension in VS Code like Remote-SSH (i.e. your kernel and script file are on the same machine)?

If you are connected to a remote Jupyter server, this is a duplicate of #7391

@jzazo
Copy link
Author

jzazo commented Sep 7, 2021

I am using Remote-ssh and script and kernel are on the same machine. Thanks!

@jzazo
Copy link
Author

jzazo commented Sep 9, 2021

Can you reproduce, or do you need more details of the environment I am using?

@joyceerhl
Copy link
Contributor

Sorry for the delayed response. I can't reproduce this with Remote-SSH Ubuntu 20.04 and pipenv in VS Code Insiders:
image

Would you mind letting us know if the problem persists with VS Code Insiders and the latest builds of both Python and Jupyter extensions? If it does, you mentioned a custom kernel--is there anything special about that kernel that might be relevant to this scenario?

@jzazo
Copy link
Author

jzazo commented Sep 21, 2021

Hi! I installed vscod insiders, installed all extensions, and for a brief moment I could test this issue and it was working. After changing some configuration and/or installing python insiders, I get a notification "Python extension loading..." and it never ends. How can I debug/fix that? I can no longer try anything with jupyter.

@joyceerhl
Copy link
Contributor

The Python extension released a point fix yesterday which should address the "Python extension loading..." issue. Which version do you have? (Reloading VS Code may also fix this problem.)

@jzazo
Copy link
Author

jzazo commented Sep 21, 2021

I activated the daily python insiders version, which at the moment is v2021.10.1255769080-dev.
Both the insiders and non-insiders is giving me this loading problem. I have reloaded vscode-insiders multiple times also...

@joyceerhl
Copy link
Contributor

Thanks for the details. I have opened microsoft/vscode-python#17479 to track the Python extension failing to complete loading. Please consider providing the Python logs from the Python output panel in that issue as well.

It sounds like the bug with interactive cells in Jupyter has been resolved so I will close this issue for now, but please feel free to ping if the issue reappears. Apologies for the trouble.

@DonJayamanne DonJayamanne added the verified Verification succeeded label Sep 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug interactive-window Impacts interactive window verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants