With the old Sage notebook one could start a server running and allow
multiple users to create accounts and log into it (say behind a
firewall for security).  Is that possible with the Jupyter notebook?
I have tried but unsuccessfully except as follows: when jupyter starts
up (i.e. I type 'sage -n=jupyter' on the server) it automatically
opens up in my own browser, and  also reveals a URL of the form

http://localhost:8889/?token=<long random string>

Now another user with an account on the server can successfully open
that if they use an ssh tunnel to redirect the sever's port 8889 to
their own machine, but if we replace localhost by the server's actual
name on the network it will not connect.  I don't think that this is a
firewall issue (though it could be) since with the old notebook server
there was no problem connecting to a port number such as this on the
local network.

I know that there are much fancier options such as running the Cocalc
docker image but right now that would take me too long to set up in a
secure way (it is all too easy to run that with no security but that
is definitely not recommended!).

John

PS Here is exactly what I see after typing 'sage -n=jupyter' on the
server, with tokens redacted:

$ sage -n=jupyter
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.0, Release Date: 2017-07-21                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
Please wait while the Sage Jupyter Notebook server starts...
[I 09:29:57.771 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js
[I 09:29:58.260 NotebookApp] The port 8888 is already in use, trying
another port.
[I 09:29:58.265 NotebookApp] Serving notebooks from local directory: /home/jec
[I 09:29:58.265 NotebookApp] 0 active kernels
[I 09:29:58.265 NotebookApp] The Jupyter Notebook is running at:
http://localhost:8889/?token=***
[I 09:29:58.265 NotebookApp] Use Control-C to stop this server and
shut down all kernels (twice to skip confirmation).
[C 09:29:58.266 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8889/?token=***
Failed to connect to Mir: Failed to connect to server socket: No such
file or directory
Unable to init server: Broadway display type not supported: localhost:11.0
Error: cannot open display: localhost:11.0
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: iceweasel: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: seamonkey: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: mozilla: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: epiphany: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: konqueror: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: google-chrome: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: www-browser: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: elinks: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 771: /usr/bin/xdg-open: w3m: not found
xdg-open: no method available for opening 'http://localhost:8889/tree?token=***'

The first and second tokens are the same but the third is different.
I don't know if any of those errors is at all important.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to