Running Python Code at pythonanywhere.com

This section provides a tutorial example on how to use to Linux terminal at pythonanywhere.com to run Python code with a Web browser.

If you are familiar with Linux system, you can use the Linux terminal at pythonanywhere.com to run Python code with a Web browser. It is free for Beginner users. But login is required.

Here is what I did:

1. Start any Web browser.

2. Go to the PythonAnywhere log in page at https://www.pythonanywhere.com/login.

3. Click the "Sign up" link to create a login account. The dashboard is display.

4. Click the "$ Bash" link in the "New console" section. A Linux terminal is displayed in the browser.

5. Create a Python code file, hello.py using the "vi" command.

6. Run the Python code file using the "python" command.

02:44 ~ $ vi hello.py

02:44 ~ $ python hello.py
Hello world!

02:44 ~ $

7. You can also use the "Files" interface to upload and download Python code files.

Run Python Code at pythonanywhere.com
Run Python Code at pythonanywhere.com

pythonanywhere.com also provides interactive Python shells and IPython shells.

Table of Contents

 About This Book

Running Python Code Online

 What Is Python Online IDE

 Using Python Shell at python.org

Running Python Code at pythonanywhere.com

 Python IDE at online-python.com

 Python IDE at sympy.org

 Python on macOS Computers

 Python on Linux Computers

 Built-in Data Types

 Variables, Operations and Expressions

 Statements - Execution Units

 Function Statement and Function Call

 Iterators, Generators and List Comprehensions

 Classes and Instances

 Modules and Module Files

 Packages and Package Directories

 "sys" and "os" Modules

 "pathlib" - Object-Oriented Filesystem Paths

 "pip" - Package Installer for Python

 SciPy.org - Python Libraries for Science

 pandas - Data Analysis and Manipulation

 Anaconda - Python Environment Manager

 Jupyter Notebook and JupyterLab

 References

 Full Version in PDF/EPUB