location: SageMath

Institute of Mathematics - PublicMathWiki:

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Sage Math

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

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

It 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 Do not use http://127.0.0.1:8889/... - this link will not work!