Sage Cell Server

Jason Grout, Ira Hanson, Steven Johnson, Alex Kramer, Byron Varberg
Drake University
Supported by UTMOST (NSF Grant DUE-1022574)

Sage

Creating a viable free open source alternative to Magma, Maple, Mathematica and Matlab.
sagemath.org

Why Use Sage?

Web Interface

sagenb.org

Why use Sage Notebook?

Perfect for research, labs, and involved homework assignments

Sage Notebook: 1+2

Go to website (sagenb.org)
Type username
Type password
Click "Sign in"
Click "New Worksheet"
Type worksheet name
Click "Rename"
Click in first cell
Type 1+2
Click Evaluate

Sage Cell: 1+2

Go to website (sagecell.sagemath.org)
Type username
Type password
Click "Sign in"
Click "New Worksheet"
Type worksheet name
Click "Rename"
Click in first cell
Type 1+2
Click Evaluate

Sage Cell: 1+2

Go to website (embed in existing web page)
Type username
Type password
Click "Sign in"
Click "New Worksheet"
Type worksheet name
Click "Rename"
Click in first cell
Type 1+2
Click Evaluate

Sage Cell: 1+2

Go to website
Type username
Type password
Click "Sign in"
Click "New Worksheet"
Type worksheet name
Click "Rename"
Click in first cell
Type 1+2 (preload content)
Click Evaluate

Sage Cell: 1+2

Go to website
Type username
Type password
Click "Sign in"
Click "New Worksheet"
Type worksheet name
Click "Rename"
Click in first cell
Type 1+2
Click Evaluate (automatically evaluate)
1+2

Sharing

Sage Notebook: 1+2

Using the Sage notebook for a short, temporary computation is like

dinner @ 5, want 2 go?

hand-engraving and delivering a text message

Go to website
Type username
Type password
Click "Sign in"
Click "New Worksheet"
Type worksheet name
Click "Rename"
Click in first cell
Type 1+2
Click Evaluate

Moral

Make it easy

Sage Cells

Enables

How do I get started?

sagecell.sagemath.org

Go to

sagecell.sagemath.org

Embedding in 3 easy steps

  1. Include header
    <script src="https://sagecell.sagemath.org/static/jquery.min.js"></script>
    <script src="https://sagecell.sagemath.org/embedded_sagecell.js"></script>
    <script>$(function(){sagecell.makeSagecell({inputLocation:'.sage'})});</script>
  2. Include code
    <div class="sage"><script type="text/x-sage">
    1+2
    </script></div>
  3. You're done. Have a treat!

Linked Cells

sagecell.makeSagecell({inputLocation: '.sagelinked', linked:true})

x=3; print x

What are powers of $x$?

html.table([["$x^%d$"%i, x^i] for i in range(4)])

Other languages

sagecell.makeSagecell({inputLocation: '.sage-r', 
languages: sagecell.allLanguages, defaultLanguage: "r"})
<div class="sage-r"><script type="text/x-sage">
wmmod <- lm(weight ~ height, women)
summary(wmmod)
</script></div>

Thank You!

Jason Grout, jason.grout@drake.edu
sagecell.sagemath.org, interact.sagemath.org

One more thing

Cell Canvas

Yet another one more thing

New Interacts
#