location: SageMath

Institute of Mathematics - PublicMathWiki:

Sage Math

To start Sage with a Jupyter notebook: type in a terminal

> sage '-n jupyter --ip=`hostname`'

This will start Sage on a default compute host. If you want to run it on a specific compute server, type the name of the server first to login to it. For instance, to start Sage on superhost

> superhost
> sage -n jupyter --ip=`hostname`

Notice no quotes in this versions of the command!

The above command should produce an output similar to the one below

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.4, Release Date: 2021-08-22                     │
│ Using Python 3.9.5. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
Please wait while the Sage Jupyter Notebook server starts...
[I 09:02:39.440 NotebookApp] Serving notebooks from local directory: /home/b/<your-name>
[I 09:02:39.440 NotebookApp] Jupyter Notebook 6.1.1 is running at:
[I 09:02:39.440 NotebookApp] http://olive:8888/?token=<a-very-long-token>
[I 09:02:39.440 NotebookApp]  or http://127.0.0.1:8888/?token=<a-very-long-token>
[I 09:02:39.440 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:02:39.957 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/b/<your-name>/.local/share/jupyter/runtime/nbserver-<notebook-id>-open.html
    Or copy and paste one of these URLs:
        http://olive:8888/?token=<a-very-long-token>
     or http://127.0.0.1:8888/?token=<a-very-long-token>

Open either of the links file:///... or http://olive:8889/... by clicking on it with right button and selecting _Open link_ from the menu.

Note 1 Do not use http://127.0.0.1:8889/... - this link will not work!

Note 2 For longer computations please use the second approach with screen.

PublicMathWiki: SageMath (last edited 2025-03-24 08:03:34 by kputyr)