Cloud9 IDE is an online integrated development environment that is cloud based. Having your code online makes it accessible from anyplace thus one can work more efficiently. Collaboration with team members on a project is made easier. A full list of features is available here. Several programming languages are supported. I will be covering setting up an IDE for debugging python projects. The home page is at https://c9.io
Sign up to get access to the services. There is the free plan and the premium on. I will be using the free standard account.
Opens a pop-up window requesting for the credentials you will be using for the new account.
An activation link is sent to the email you created the account with. You must visit this link to activate the account.
Clicking on the link opens a page where you set the password for your account.
Clicking on the Activate button opens the account dashboard. This is the interface where you manage all the activities from.
You will be required to create a workspace. A workspace is like an online runtime environment. It is where files will be stored and where all libraries and dependencies are kept. Workspace for premium members is 512MB in size while free user’s is 128MB. To create a workspace, click on the “create New Workspace”. You will be required to name the workspace being created, the type of privacy and version control tools to use. I will name mine techly. I will use Git control version. You can use whichever preferred.
This adds the workspace we have created to the “my projects” tab on the dashboard. We select the newly created workspace and click on start editing.
It opens the workspace area. This contains all the code editing tools required for writing tests and debugging code.
Also comes with a terminal where you can run raw commands.
I will start off by creating a new file where I will write some python code which I will compile. To create one, go to File-> New File
This opens an untitled file. We need to save the file with a suitable name. Click on File-> save.
The save as dialog appears. I save mine as “helloworld.py”. Remember the extension .py as this qualifies it as a python file.
I will write a simple python script that displays the text “hello world”. In the file created type in the following contents:
I need to add the python runtime to my file. Go to the ‘RUN AND DEBUG’ ICON. On the runtime at the bottom choose Python. Various runtime is available for compiling the code.
Click on the Run button to start the application.
On the output console located at the bottom of the editor you will see the message we had intended to display with our script. And that is how to run python scripts on the cloud. The files are saved automatically as any modifications are made to the files.
Designed By: Waleed Rafique
All Rights Reserved, Sharath Reddy