How do I run a Python file?

How do I run Python code in Codio

Ian avatar
Written by Ian
Updated over a week ago

If you are familiar with the Linux command line, you can also open up a terminal window from the Tools->Terminal menu.

Once this appears, you should enter the following

python <filename.py>

But also check out 

  • the Python Hello World starter pack that serves as a template for Python projects in Codio and the .codio file has been configured so you can run the contained hello_world.py   file

  • or the Personal Playground assignment in the Python course where the .codio file has been configured so you can Run any 'current' file. 

Personal Playground isn't a tutorial so you can play with it by creating or running any file.

See https://docs.codio.com/project/ide/boxes/#customizable-run-menu for more on how you can configure the .codio file

Did this answer your question?