Example notebooks

The notebooks are in the Jupyter format (ipynb). They can be read directly in the browser by just clicking on their names in the list below. The notebooks are opened in read-only mode, but you can access to an interactive version by clicking on Execute on Binder in the top right menu.

To download a notebook and run it on your computer, click on [ipynb] (or on the download button in the notebook top right menu) and type

sage -n jupyter example_file.ipynb

See also the tutorial notebook (Japanese version is here), the tutorial videos, the plot tutorial (plots of coordinate charts, manifold points, vector fields and curves), the tutorial on pseudo-Riemannian manifolds (metric, Levi-Civita connection, curvature, geodesics) [video] and the series of notebooks Introduction to manifolds in SageMath.

2-dimensional manifolds

3-dimensional manifolds

Tensor algebra

Maximally symmetric spacetimes

Black hole spacetimes

Other examples regarding black hole spacetimes are posted here.

Examples regarding black branes in 5-dimensional spacetimes: black branes in Lifshitz-like spacetimes and Vaidya-Lifshitz solution

Cosmological spacetimes

Other examples in General Relativity

Examples in solid state physics and electromagnetism

Analysis on manifolds

Submanifolds

Vector bundles


See also the tutorial notebook (Japanese version is here) and the tutorial videos for a basic introduction, as well as the plot tutorial for plots of coordinate charts, manifold points, vector fields and curves.