Back to setup choices

Lesson 2 of 9 | 8 minutes

Run Python Directly in Ceteris Lab

Use the easiest path: editable Python in the lesson, with no local installation.

After this lesson, you can

  • Run and edit browser Python.
  • Reset a code cell safely.
  • Know when to move to JupyterLab or Colab.

1. Run a lesson example

  1. 1Sign in if you want activity saved to your account.
  2. 2Open a Python-enabled lesson.
  3. 3Find a Live Python block.
  4. 4Select Run Python.
  5. 5Read the output.
  6. 6Change the code and run it again.
  7. 7Use Reset to restore the original code.
  8. 8Open a notebook when you need a larger lab.
Live Python in a Ceteris lesson
Run PythonReset
values = [2, 4, 6, 8]
print(sum(values) / len(values))

Output

5.0

Live Python

Browser Python check

Browser Python check

Stdout

Run Python to see results here.

Status / stderr

Ready to run Python in your browser.

Line-by-line guide

  1. Line 1Display a result so students can inspect the output.

Expected output

My Ceteris Lab Python is working!

Live Python

NumPy check

NumPy check

Stdout

Run Python to see results here.

Status / stderr

Ready to run Python in your browser.

Line-by-line guide

  1. Line 1Load a Python library needed for data work or regression.
  2. Line 3Create or update a Python object used in the analysis.
  3. Line 4Display a result so students can inspect the output.

Expected output

5.0

Challenge

Add 10 to the array and predict the new mean before running.

Your setup progress

Five readiness checkpoints

0% complete