Ask Your Question

Launch Sage Notebook directly from linux menu

asked 2017-04-13 15:10:03 -0500

cybervigilante gravatar image

How can I set up a menu icon to launch Sage notebook automatically from linux mint? Now I have to open a terminal, type sage, then when it loads, type notebook()

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-04-13 21:57:19 -0500

roberto gravatar image

I found the solutions above way too slow. I have all my sagemath notebooks on a sagemathNB folder in Documents. In my ~/bin I created a script called sage_nb

cd ~/Documents/sagemathNB
$SAGE ROOT/sage -n jupyter

Remember to chmod +x sage_nb Then I create a SageMath.desktop file in my desktop

[Desktop Entry]
Name=Jupyter notebook with Sage
Name[en]=Jupyter notebook with Sage
Comment=Scientific Computing using Jupyter notebook and Sage
Comment[en]=Scientific Computing using Jupyter notebook and Sage
Icon=$SAGE ROOT/src/ext/notebook-ipython/logo.svg

Finally you can copy to sudo cp SageMath.desktop /usr/share/applications/

edit flag offensive delete link more

answered 2017-04-13 20:51:31 -0500

tmonteil gravatar image

You can find various desktop menus at

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2017-04-13 15:10:03 -0500

Seen: 60 times

Last updated: Apr 13