SageMath + Jupyter Notebook + JupyterLab installation for Linux Ubuntu 26.04.1
HI
This page describes a clean and reproducible installation of SageMath (develop branch), Jupyter Notebook, and JupyterLab on a Linux PC running Ubuntu 26.04.1 Resolute.
Scripts used The installation uses three scripts:
installSageMathJupyterLinux.sh sage_nb.sh sage_lab.sh Download these three files from your OneDrive links and save them into your home directory /home/LinuxUser : zipped 3 files unzip installSageMathLinux.zip
Step 1 – Run the installer Run the main installer script from your home directory /home/linuxUser/ :
bash ~/installSageMathJupyterLinux.sh The installer will automatically:
Install all required system packages. Download and compile SageMath (develop branch). Install Jupyter Notebook and JupyterLab. Install the Sage kernel for Jupyter. Create ~/bin and add it to your PATH (Ubuntu 26.04.1 no longer does this by default). Move sage_nb.sh and sage_lab.sh from ~/ into ~/bin. Make both launchers executable. Create ~/sageProjects as your default project folder. Step 2 – Launch Jupyter After installation, you can launch Jupyter from any directory:
Jupyter Notebook sage_nb.sh
JupyterLab sage_lab.sh
Both commands work globally because ~/bin is added to your PATH by the installer.
Project structure The installer creates a default project root:
~/sageProjects/
You can organize your work like this:
~/sageProjects/MyProject/
This structure is clean, stable, and well suited for SageMath + Jupyter workflows, including LEGO-style notebook projects.
Notes This installer is intended for a Linux PC running Ubuntu 26.04.1, not WSL. You do not need to manually create ~/bin; the installer does it. You do not need to manually move the launchers; the installer moves them from ~/ to ~/bin. You do not need to manually add ~/bin to PATH; the installer handles it.
If you encounter a problem, please report it here, even if you have resolved it yourself.
I had to increase swap memory on my old PC Toshiba C70-B with OS Ubuntu26.04.01 to allow installation SageMath 10.10.beta9 using Python 3.14.4, to avoid crashing Ubuntu 26.04.01 I didn't need swap memory with SageMath 10.10.beta9 using Python 3.13.1
Python 3.14. require significantly more memory than Python 3.13, and they can trigger OOM (Out Of Memory) conditions when also running heavy notebooks.
Procedure