Download and run
Since all SageManifolds code is included in SageMath, it suffices to install SageMath 10.1 to benefit from the latest manifold functionalities:
- Linux: major Linux distributions have SageMath packages; however, it may be a version older than 10.1. To install SageMath 10.1 on Ubuntu 20.04 or 22.04 (and other Debian-based systems), simply follow these Ubuntu installation steps; for other distributions, see the installation guide.
- macOS: visit this page
- Windows: visit this page
sage -na Jupyter page should open in your browser. Click on "New" and select "SageMath 10.1" to open a Jupyter notebook with a SageMath kernel. In the first cell, if you type
Manifold(2, 'M')the output should be
2-dimensional differentiable manifold M
Use a Docker imageIf you are familiar with Docker, an alternative to a traditional install is to pull the SageMath Docker image.
Use without installation
Instead of installing SageMath on your computer, you can run it remotely via CoCalc:
- in a Jupyter notebook: in the Kernel menu, choose Change kernel and select SageMath 10.1 (or higher)
- in a SageMath worksheet: to have nice LaTeX-typeset outputs, type
typeset_mode(True)in the first cell.
Another option is to use Sage Debian Live, which is a USB key with SageMath preinstalled.
local/share/doc/sage/html/en/reference/manifolds/index.htmlwhile the reference manual of the pure algebraic part of SageManifolds is located in
local/share/doc/sage/html/en/reference/tensor_free_modules/index.htmlFinally, SageMath's whole reference manual is located in
PDF manualsThe PDF reference manuals are generated by
./sage -docbuild reference/manifolds pdf ./sage -docbuild reference/tensor_free_modules pdf
The SageManifolds reference manual is then
under your SageMath root directory, while the reference manual of the
pure algebraic part of SageManifolds
Tutorials and extra documentation
Python source files
The Python source files of the SageManifolds project are located in two subdirectories of your SageMath root directory:
src/sage/tensor/modules/for the pure algebraic part (tensors on free modules)
src/sage/manifolds/for the topological and differential parts
See the Contribute section if you would like to modify or add some code.
Downloading example notebooks and extra stuff
In a directory different from the root of your SageMath install, type
git clone https://github.com/sagemanifolds/SageManifolds.git
and take a look at
The example notebooks can also be downloaded directly from the examples page, by clicking on [ipynb] (Jupyter notebook format).