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: zipped 3 files unzip installSageMathLinux.zip
Step 1 – Run the installer Run the main installer script from your home directory:
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.