CoCalc Introduction


... stands for 'Collaboritive Calculation in the Cloud'. Their platform allows you to:

You can set up an account and do all this for free without installing any software on your own computer, other than a web browser. (Acknowledgment: This web page is a revision of one originally authored by Paul Meyer-Reimer.)

1. View this video overview (optional but recommended)

This video overview (10 minutes) to CoCalc (below) was prepared for a programming (Python) class. We'll be doing slightly different things in our mathematics course.

2. Sign up for an account

  1. Start up a web browser. CoCalc recommends using the Chrome browser. But Safari and recent versions of Firefox are also compatible with CoCalc.
  2. Make sure you are logged in with your '@goshen.edu' e-mail address to some Google service, such as your GC e-mail account. (It's important to use your GC e-mail address as your username so that your professor can easily add you from a GC-generated class list of e-mail addresses.)
  3. Go to cocalc.com.
  4. Read and check the box that you agree to the 'Terms of Service', then you'll see this screen. Click the 'G' to sign up using your @goshen.edu account.

  5. OK, you're in!

3. Create your first project (optional)

This section is optional because you need only work in the Math 211 projects that have been created for you!

A project is like a folder for your work. But you have to create one before you can do anything else.

After you Create an account on CoCalc, or after you sign in, you'll land on the Projects page.

  1. Fill in a project name. (Don't worry, you can change this later.)
  2. Click the "Create Project" button.
  3. Click on the name of your newly-created-project to open the project. You'll see an empty project. We'll start adding files. Alternatively, there may already be a course related project available. You could enter that project instead of the project you created...

 

4. Create your first Jupyter notebook

  1. Fill in the name of the notebook. Here I'm calling it nb1
  2. Click on the Jupyter notebook button.


Your new notebook will open. Let's get oriented...

  1. The name of your Jupyter notebook file, here nb1.ipynb, shows up in the active file tab. ".ipynb" is the file extension for Jupyter notebooks.
  2. At the top right, the name of the running kernel, "SageMath (stable)" is shown. This is fine for most purposes. The kernel is the library that interprets your input code cells. You can switch to different kernels by selecting the "Kernel" menu item.


  1. The first input cell is highlighted in green.
  2. A drop-down menu shows that this input cell is a code cell, which we'll use for calculation. (You can drop down the menu and change the cell to be a "markdown" cell, which you'll use to write in.)
  3. Finally, there is a prominent green button that does the same as the File | Save menu item.

5. Calculate using SageMath

Let's use SageMath to convert 30 degrees to radians by multiplying by the conversion factor $\pi$ radians for every 180 degrees.

You'll type the calculation you wish to do into an input cell, and then hit Shift+Return to carry it out.

This results in an "output" cell with the result of your calculation:

To get a numerical answer you could have used the "function" n(...) by enclosing the calculation inside the parentheses of the function. But we'll do something slightly different: The underscore character, '_' refers to the most recent output, so you can do this:

Many other useful functions:

6. Document your work with Markdown cells

What the notebook interface really shines at is mixing calculations with writing about those calculations (explanations).

The first step in writing about your work inside of a Jupyter notebook is to select a cell and change it from "code" to markdown

Now, you can type out what you'd like to write. Some of what you're typing will affect the appearance of what you write...

Pressing Shift+Return will cause the markdown to be "rendered":
In this example: