Skip to content

Can VSCode automatically run python scripts in two or more terminals at the same time?  #14094

Description

Feature: Notebook Editor, Interactive Window, Python Editor cells

Description

Can VSCode automatically run python scripts in two or more terminals at the same time without manually entering the path?

When I create a new terminal in VSCode to run the specified file, (it is still running), and then when I click the run button ("Run python file in terminal"), it will automatically run in the terminal that appears to be specified(not the newly created terminal). They look exactly the same python terminal.
Is it possible to set up VSCode so that it can automatically synchronize and run their respective files?

Since they are in the same terminal by default, the running results must be output in sequence, and if I use an external cmd window to debug, the results also need to be run in sequence, otherwise a new cmd window will not be able to be opened.

Thanks.

Microsoft Data Science for VS Code Engineering Team: Rich Chiodo (@rchiodo), Ian Huff (@IanMatthewHuff), David Kutugata (@DavidKutu), Don Jayamanne (@DonJayamanne), Jim Griesmer (@greazer), Joyce Er (@joyceerhl)

Activity

  1. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Sep 28, 2020
  2. karthiknadig commented on Sep 28, 2020

    @karthiknadig
    Member

    Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.

  3. baconalot commented on Apr 6, 2021

    @baconalot

    +1
    This did not used to be the default behavior. It used to run in the currently active terminal window. The new behavior is really annoying since it does not even look if the "Python" tty is executing and just tries to execute there. At least give a setting for the wanted behavior.

  4. wangwei-cmd commented on Sep 2, 2021

    @wangwei-cmd

    pycharm professional can run multiply python file in split terminals automatically.

  5. Trance-Paradox commented on Oct 18, 2021

    @Trance-Paradox

    Really annoyed by this issue. Cannot run python in 2 separate terminals or even in currently active terminal

  6. Avannit commented on Oct 26, 2021

    @Avannit

    I support, it is not convenient to debug the server and the client, me have to clog up the extra workspace in order to achieve the result (i am recent user in the vscode)

  7. 8 remaining items

  8. karrtikr commented on May 9, 2023

    @karrtikr

    We've added the option to assign a dedicated terminal for each Python file:

    image

    Fix should be out in the pre-release version of the extension, use the following to try it out:

    image

  9. xzkeee commented on May 17, 2023

    @xzkeee

    huge thanks!

  10. karrtikr commented on May 25, 2023

    @karrtikr

    Marking issue as verified assuming folks have tried it out and are happy with it.

  11. locked as resolved and limited conversation to collaborators on Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions