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

Cells executed from the input box can be executed out of order #10671

Closed
amunger opened this issue Jul 1, 2022 · 2 comments · Fixed by #11129
Closed

Cells executed from the input box can be executed out of order #10671

amunger opened this issue Jul 1, 2022 · 2 comments · Fixed by #11129
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug interactive-window Impacts interactive window verified Verification succeeded
Milestone

Comments

@amunger
Copy link
Contributor

amunger commented Jul 1, 2022

  1. open a python file without having an active IW open
  2. execute the cell from the file
# %%
print(n)
  1. After the IW is created and while the kernel is connecting, run n=1 from the input box

Result: the second cell added (from the input box) is executed first
image

The execution count in the CodeGenerator is also out of sync now, so debugging and error stack traces do not behave well

@amunger amunger added the bug Issue identified by VS Code Team member as probable bug label Jul 1, 2022
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Jul 1, 2022
@amunger
Copy link
Contributor Author

amunger commented Jul 1, 2022

you can also execute a set of long running cells from the file, the input box still jumps the line

# %%
import time
time.sleep(5)
# %%
time.sleep(5)
# %%
time.sleep(5)
#%%
time.sleep(5)

@rchiodo
Copy link
Contributor

rchiodo commented Jul 1, 2022

Yeah this makes sense. The queue is in the Jupyter Extension. The input box doesn't go through the jupyter extension. We'd need to push the queue to core or have the behavior of the input box defined by the jupyter extension I think.

@greazer greazer added interactive-window Impacts interactive window and removed triage-needed Issue needs to be triaged labels Jul 7, 2022
@amunger amunger added this to the August 2022 milestone Aug 12, 2022
@DonJayamanne DonJayamanne self-assigned this Aug 15, 2022
@DonJayamanne DonJayamanne added the verified Verification succeeded label Aug 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2023
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

Successfully merging a pull request may close this issue.

5 participants