Running programs on PythonAnywhere

PythonAnywhere is a Cloud service for Python development. The interface is completely web-based and simulates the Bash, Python, and IPython consoles. The support of Python versions and libraries is more varied compared to GAE. The preinstalled Python libraries are listed at https://www.pythonanywhere.com/batteries_included/.

The software version may lag a little behind the latest stable versions available, but not as much as GAE. At the time of writing, installing Python software from the PythonAnywhere Bash console appears a bit problematic and is not recommended.

It is recommended to upload Python source files instead of using the PythonAnywhere environment, as it is less responsive than our local environment. Upload files by clicking on the Files tab in the web application. Since rpy2 is supported, upload the r_demo.py file from this chapter. To execute the program, click on the Consoles tab and then click on the Bash link. Refer to the following screenshot for the end result:

Running programs on PythonAnywhere

Unfortunately, PythonAnywhere is not able to process the matplotlib show() function, so we can only print values on the console.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.255.178