Skip to main content

Discrete Math with SageMath: Learn math with open-source software

Section 1.9 Run Sage in the browser

The easiest way to get started is by running SageMath online. However, if you do not have reliable internet, you can also install the software locally on your own computer. Begin your journey with SageMath by following these steps:
  1. Navigate to the SageMath website
     1 
    https://www.sagemath.org/
  2. Click on Sage on CoCalc
     2 
    https://cocalc.com/features/sage
  3. Create a CoCalc account
     3 
    https://cocalc.com/auth/sign-up
  4. Go to Your Projects
     4 
    https://cocalc.com/projects
    on CoCalc and create a new project.
  5. Start your new project and create a new worksheet. Choose the SageMath Worksheet option.
  6. Enter SageMath code into the worksheet. Try to evaluate a simple expression and use the worksheet like a calculator. Execute the code by clicking Run or using the shortcut Shift + Enter. We will learn more ways to run code in the next section.
  7. Save your worksheet as a PDF for your records.
  8. To learn more about SageMath worksheets, refer to the documentation
     5 
    https://doc.cocalc.com/sagews.html
  9. Alternatively, you can run Sage code in a Jupyter Notebook
     6 
    doc.cocalc.com/jupyter-start.html
    for some additional features.
  10. If you are feeling adventurous, you can install Sage
     7 
    doc.sagemath.org/html/en/installation/index.html
    and run it locally on your own computer. Keep in mind that a local install will be the most involved way to run Sage code.