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.

Cannot run lines in multiple interactive windows at the same time

See original GitHub issue

Environment data

  • VS Code version: 1.63.2
  • Jupyter Extension version: 2021.11.1001550889
  • Python Extension version: 2021.12.1559732655
  • OS and version: Windows 10 2004
  • Python and/or Anaconda version: 3.9
  • Type of virtual environment used: N/A
  • Jupyter server running: Local

Expected behaviour

Run two time-consuming codes in multiple interactive windows simultaneously, like in the 2021.10 version Jupyter.

Actual behaviour

The first window successfully executes the code, while the second window does not execute until the first window finishes.

Steps to reproduce:

Open an interactive window, and use “Run Selection/Line in Interactive Window” to send the following code.

while True:
   pass

image

Open a second interactive window, and use “Run Selection/Line in Interactive Window” to send the same code to the second window. The second window cannot execute the code unless we turn off the first window. image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
xiejx5commented, Dec 23, 2021

Merry Christmas and Thanks for your efforts in 2021.

0reactions
JackyWeng526commented, Jun 24, 2022

Thank you so much. It saves my coding life.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code Python Tool Does Multiple Interactive Windows
Just open the settings page (File > Preferences > Settings), search for 'interactive window mode' and change the setting value to 'perFile.' Now ......
Read more >
VS Code: Shift+Enter does not send code to Python Interactive
Shift + Enter is registered as a keyboard shortcut for both sending code to Terminal and for sending it to Python Interactive. I...
Read more >
Running Python scripts simultaneously in VS Code
I managed to execute in the newly-opened terminal window typing a command there. Not as convenient as shift + enter but does the...
Read more >
Run scripts in a Windows VM in Azure using action Run ...
This article describes how to run PowerShell scripts within an Azure Windows virtual machine by using the Run Command feature.
Read more >
Python interactive window (REPL) - Visual Studio
Visual Studio has many Python REPL modes to choose from: ... Once the Interactive window is open, you can start entering code line-by-line...
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