Ask Your Question
1

Launch Sage Notebook directly from linux menu

asked 2017-04-13 22:10:03 +0100

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
1

answered 2017-04-14 03:51:31 +0100

tmonteil gravatar image

You can find various desktop menus at https://trac.sagemath.org/ticket/22599

edit flag offensive delete link more
1

answered 2017-04-14 04:57:19 +0100

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

#!/bin/bash
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
Exec=sage_nb
Icon=$SAGE ROOT/src/ext/notebook-ipython/logo.svg
Terminal=false
Type=Application
Categories=Education;Math;Science;
StartupNotify=true
Name[en_US]=SageMath

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

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

Stats

Asked: 2017-04-13 22:10:03 +0100

Seen: 1,586 times

Last updated: Apr 14 '17