While using Cloud9 IDE, you have access to the Python runtime. Accessing the command is no different than the way you’d use Python on your computer; just open the command line and type
Running a Python Program
To run a Python program that you’ve created, you can either:
- Open the command line and type
python, followed by the name of your program; for example
- Create a new run scenario, so that you can do things like pass in command line arguments
As a quick demonstration, open a new file, and paste this Python code into it:
#!/usr/bin/python print "Hello World!";
When you hit the Run button in the menu bar, the console will print out
The default Python version used in workspaces is 2.7.6. To use Python3 as your default runner, simply go to your workspace settings then go to
Run Configurations >
Manage and set Python Version to Python 3.
Or to run a Python program from the command line with Python3 you may just run:
$ python3 filename.py
Currently there is no built-in Python debugger. Though there is no ETA on this, it will likely be possible in the future. To build a python debugger of your own, check out our SDK documentation.