⌘K
Examples (8)
Start a REPL (interactive shell)
pythonExecute a specific Python file
python path/to/file.pyExecute a specific Python file and start a REPL
python -i path/to/file.pyExecute a Python expression
python -c "expression"Run the script of the specified library module
python -m module argumentsInstall a package using `pip`
python -m pip install packageInteractively debug a Python script
python -m pdb path/to/file.pyStart the built-in HTTP server on port 8000 in the current directory
python -m http.servermade by @shridhargupta | data from tldr-pages