Running Python

Harold Nelson

8/29/2020

Three ways in Cocalc

  1. Create a terminal “file” and start the python interpteter. Interact with the interpreter in a Read-Evaluate-Print Loop (REPL).

  2. Create a file containing python code as text. Open a terminal and direct python to run the file.

  3. Create a Jupyter notebook and use the python3 kernel.

Cocalc Tasks

  1. Create a project
  2. Create a folder
  3. Create a python code file
  4. Create a terminal
  5. Navigate the files system
  6. Create a Jupyter Notebook

Jupyter Notebook Tasks

  1. Switch cells between markdown and code.
  2. Run a cell
  3. Create a new cell
  4. Delete a cell
  5. Use Time Travel
  6. Save notebook to pdf
  7. Download pdf (To submit in Moodle)