Ask Your Question

How can I access the notebook interface using Tails OS ?

asked 2018-11-19 13:06:00 -0600

ScLa gravatar image

Background: SageMath responds to the notebook() command by automatically opening the default browser. The default browser on Tails OS is the Tor Browser which cannot access localhost.

Question: Is there a way to prevent SageMath from automatically opening a browser which would permit the notebook to be accessed using Tails' Unsafe Browser ? If not, is there some other workaround?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-11-19 23:42:07 -0600

slelievre gravatar image

You can change which browser Sage will launch by running the following terminal command:

export SAGE_BROWSER="firefox"

(replace "firefox" by the browser of your choice).

If you want to make this permanent, add this line the .bashrc or .bash_profile file in your home:

export SAGE_BROWSER="firefox"

You can also run this command from inside Sage just before launching the notebook; just prepend it by an exclamation mark.

sage: !export SAGE_BROWSER="firefox"
sage: notebook()

By the way, instead of the legacy SageNB notebook, you might want to switch to the new Jupyter notebook. You can start it by running in a terminal

sage -n jupyter
edit flag offensive delete link more


Thank you for your suggestion. Tails applications, adide from Tor itself and the Unsafe Browser, access the Tor network only and hence, cannot access localhost.

ScLa gravatar imageScLa ( 2018-11-20 04:28:33 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-11-19 13:06:00 -0600

Seen: 69 times

Last updated: Nov 19 '18