Waleed Rafique

Using Cloud9 IDE To Develop And Debug Code From The Cloud

Share Button

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.

Share Button

Related posts:

Setting up an application using django and requirements
Building And Hosting a Google App Engine Application
Using Microsoft Office 365 Suite Cloud Service
Creating Virtual Cloud Servers On NephoScale

«
»
  • DonaldVRoark

    I’m really glad you published this post, Sharath, because there are so many idiosyncrasies about Cloud computing. Cloud9 IDE is an online development environment for JavaScript and Node.js application as well as HTML, CSS PHP, Java, Ruby and 23 other languages. Cloud9 IDE is completely free to use for open source project and with it now I have deployed my project to production servers hosted by Heroku and Nodester in order to take my awesome ideas to a wide audience. Sharath your idea and account set up tutorial will be very helpful for a new Cloud9 IDE user.

  • ScottLDonaldson

    At present I have been developing a project in Python for the last three months. But I have not yet to find an IDE or text editor that could provide some extra functionality for me. Sharath can you provide me some good list of Python editors?

    • sharathreddy

      Here is a good list of Python Editors and there’s also a poll here at StackOverflow. I am suggest you about WingIDE because it is a free version and its features are -rich, good and easy, and support Remote Debugging only in the commercial version. Also Eclipse PyDev-Plugin , which is fully free. Is worth looking into it and seems to support Remote- Debugging.

  • RaymondFWagar

    Excellent post!! Yes when I work in a Cloud9 workspace , the files I save and the runtime I was using already operating in the cloud. Cloud9 workspace doesn’t care where I am or what OS I am using. Actually c9.oo/[myrname]/[myproject] is just like any other URL on the web: It is shareable. I can pass it off to my colleague and the IDE loads up just as I see it, in a matter of seconds everyone is working in the same environment. I don’t have to create a development environment because it exists independently from the computer I’m using. Thanks the author and sharathreddy.com for publishing such a excellent post.

  • JamesDGuerrero

    After reading your post I have set up a account but a problem occur, that is it connects successfully and Is command lists all files as expected. However, the workspace folder in the Workspace files panel is empty , and opening any file directly using the open console command returns the following error:

    “Problem opening file; it does not exist or something else failed. More info: [object Object]”
    Sharath can you help about this problem?”

    • sharathreddy

      Can you check the network panel and look for a PROPFIND request , and the Chrome/Firebug console for any error. You can also verify that the user account that you log on to the server with has rights to all files/folders that you try to access? Thanks for question.

  • JamesVMoyer

    I am interested in development working. And I also know that Cloud9 IDE is a flexible system that combine with many services which are important to the development Lifecycle. I know that this editor is a open-source , I can feel free to write our own extension to connect to any web-based platform. Sharath with your article you have a done a great job like a teacher . Your tutorial helps me how I will set up a account which I am looking for .

  • JamesVMoyer

    I am interested in development working. And I also know that Cloud9 IDE is a flexible system that combine with many services which are important to the development Lifecycle. I know that this editor is a open-source , I can feel free to write our own extension to connect to any web-based platform. Sharath with your article you have a done a great job like a teacher . Your tutorial helps me how I will set up a account which I am looking for.

  • MichaelGouldJ

    Cloud9 IDE is an online code editor. This editor is fast, and extremely powerful, with tabbed file browsing, auto completion of methods and properties, searching across project files and many other features I would expect from a terrific editor. To get access to the service firstly we need to sign up. So if anyone wants to get idea about set up account I will recommended his/her this sharathrddy.com. This site is actually Awesome!!

    • sharathreddy

      Thanks Micheal…

  • DonaldLMcHugh

    Thank you Sharath for this great post. There is no more debate about the fact that content is the King. Because without creating a workspace I can’t use this account. I have searched many sites for this information but I can’t understand their hard method. Your easy system and screenshot helps me to understand how I will create workspace. Thanks for the article – some interesting reading and definitely some different content! Nice.

  • RonaldREagle

    I am a new learner and I want to know everything about cloud computing. In the last couple of days I have been playing with Cloud9 and it looks awesome. For more information I am searching many sites and at last I found my important information in the sharathrddy.com. Sharath you have exposed about an IDE debugging Python project. I know that we can run our workspace using Python and Ruby made apps. So I hope you will express your visualization in future about Ruby apps; because I am learner for that I can take decision which one is the best.

    • sharathreddy

      Thanks Ronald will surely think on this while time permits

To Top