-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
VS Code Insiders don't run the cell with shift+Enter in a .py file with #%% cell separators #24041
Comments
Do you have |
ah, but with |
Moving this to Python repo - |
Just testing this out - everything works fine with cells with # %% but trying to shift+enter on any other code not surrounded by # %% fails to be executed in both IW nor native REPL. Tried to locally add !jupyter.hascodecells inside execInREPL for Python extension gave me no luck :/ If there are instances of # %%, should every shift+enter of code(even code block that are outside of # %%) be sent to interactive window? @amunger |
created a new issue for that - I think that was existing behavior and kind of an edge case |
Does this issue occur when all extensions are disabled?: Yes/No
It's not possible to use this functionality without the MS Jupyter extension. And only the Insiders version is affected.
Steps to Reproduce:
.py
file with cell separators like# %%
and some code inside a cellimport pandas as pd
withModuleNotFoundError: No module named 'pandas'
although pandas is installed in the projects environment.P.S. The keyboard shortcuts seem to be the same for shift+Enter when I look at them and compare in the regular vscode and in the insiders version.
The text was updated successfully, but these errors were encountered: