Running Python Code in Jupyter Notebooks

This section provides a tutorial example on how to use to the online Python IDE provided at online-python.com.

If you want run Python code in Jupyter Notebooks, you can use the JupyterLab provided by jupyter.org. It is free to use. And no login is required.

Here is what I did:

1. Go to https://jupyter.org/try-jupyter/lab/. A Jupyter Notebooks interface is displayed.

2. Click "File > New > Notebbook" menu. A new notebook is displayed.

3. Enter the following code in the notebook.

print("Hello world!")

3. Press "Run" icon. The code will be executed. Output will be displayed in the notebook.

4. Enter the following code to check the Python version.

import sys
sys.version

sympy.org seems to provide the latest version of the Python system.

Run Python Code in Jupyter Notebooks
Run Python Code in Jupyter Notebooks

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

Running Python Code in Jupyter Notebooks

 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

 References

 Full Version in PDF/EPUB