location: Diff for "SageMath"

Institute of Mathematics - PublicMathWiki:

Differences between revisions 1 and 2
Revision 1 as of 2023-07-12 07:06:29
Size: 1844
Editor: kputyr
Comment:
Revision 2 as of 2025-03-24 08:03:34
Size: 2311
Editor: kputyr
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
sage '-n jupyter --ip=`hostname`' > sage '-n jupyter --ip=`hostname`'
Line 7: Line 7:
It should produce an output similar to the one below 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
Line 30: Line 37:
'''''Note''''' ''Do not use `http://127.0.0.1:8889/...` - this link will not work!'' '''''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 [[https://wiki.math.uzh.ch/public/screen|screen]].''

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)