Skip to content
← Back to Community
Can I run Python from the command line?
Profile icon
superbadca

Can I run pytest or Python with command line options? The Run button doesn't let me do that.

Voters
Profile icon
g10albert
Profile icon
superbadca
Comments
hotnewtop
Profile icon
superbadca

Got it! it was F1. Thanks,

Profile icon
superbadca

Sorry Optimistguy, I must be doing something wrong. When I focus on the editor, f2 gives me a "replace variable. I don't see an option to open a shell.

Profile icon
optimistguy

yes, you need to open the shell by focus on the text editor. Then f2 and choose the open to open the shell. The a window will open and you will have access to python2 and 3. if you just run stuff then it will run in python2. So Python3. Then type anything you want. Happy Coding :D