The Sage Cell Repository is a highly structured catalog of reusable Sage cells that can be easily embedded into online documents. Each Sage cell will be tagged with important attributes to make it easy for instructors, authors, and anyone using Sage to find examples of Sage code appropriate for their needs. Sage cells can also contain code snippets in Octave and R. See the repository for examples and instructions on creating your own Sage cells.
Below is a Sage cell from the repository tagged as “number theory” and “greatest common divisor.” Try it out and then put in your own Sage commands (or Python) to evaluate. To get back to the original cell contents, just reload the page.