Run Python code
Run & Debug popup: Ctrl0R
Run at caret: CtrlShift0R
You can run your Python code right from Fleet provided that you have configured a Python interpreter.
If you are not going to pass any parameters to your program, and your program does not require any specific actions to be performed before start, you can run it right from the editor.
Click the run icon in the gutter and select Run.
Alternatively, place the caret at the class or main method that you want to run, and press CtrlShift0R
If you are going to pass arguments or otherwise customize the execution of your script, use a run configuration.
Run configuration is a set of parameters that define how exactly your program will run. It contains a path to the Python script or a module name and an optional list of command-line arguments.
Click the Run icon (Ctrl0R) and select Create Run Configurations in run.json.
JetBrains Fleet provides completion for available configuration options as you type them in the run.json file. Select
python
:JetBrains Fleet inserts a Python run configuration template, where you need to specify the configuration name in
name
, and the Python script to be executed inarguments
:Optionally, you can pass arguments to the Python script by adding them to
arguments
after the name of the script:Click the Run icon (Ctrl0R) and select the configuration.
Click the Stop button in the tab of the running task.
Press Ctrl0R. Run & Debug popup opens and lists the tasks. The tasks that are currently running are indicated with a green circle.
Thanks for your feedback!