Skip to main content

Section 22.1 SageMathCells

Including computational SageMath cells is pretty easy with <sage>, <input>, and <output>. The last tag is useful for producing formats intended for offline reading so that they can include the result of the code's execution.

Listing 22.1.1. SageMath cell

The code in ListingĀ 22.1.1 produces the following output:

SageMathCells on a single HTML page are automatically linked so that a cell can use the results of computations done in earlier cells on the same page.