Python Tutorials - Herong's Tutorial Examples - v2.14, by Herong Yang
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.
Table of Contents
Using Python Shell at python.org
Running Python Code at pythonanywhere.com
Python IDE at online-python.com
►Running Python Code in Jupyter Notebooks
Variables, Operations and Expressions
Function Statement and Function Call
Iterators, Generators and List Comprehensions
Packages and Package Directories
"pathlib" - Object-Oriented Filesystem Paths
"pip" - Package Installer for Python
SciPy.org - Python Libraries for Science
pandas - Data Analysis and Manipulation