Ask Your Question
2

Launch Jupyter notebook from Sage?

asked 2015-11-26 14:51:36 +0100

slelievre gravatar image

When starting the SageMath REPL, the user is reminded how to launch the Sage Notebook:

$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.9, Release Date: 2015-10-10                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage:

Is there a command to launch the Jupyter Notebook (formerly IPython Notebook) from Sage?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2015-11-26 15:15:38 +0100

tmonteil gravatar image

updated 2015-11-27 15:39:39 +0100

From a terminal, run the command:

sage -n jupyter

If you must do it from the Sage command line, you can try:

 sage: !sage -n jupyter

or perhaps better:

sage: !$SAGE_SCRIPTS_DIR/sage-native-execute sage -n ipython

but i am not sure it is recommended...

edit flag offensive delete link more
1

answered 2016-02-20 05:58:54 +0100

Ivan Andrus gravatar image

If you choose "Terminal Session > Sage (advanced)" from the menu, it will prompt you for command line arguments for sage. Type "-n jupyter", then enter and away you go. This is going to be easier once I finish http://trac.sagemath.org/ticket/19881

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

2 followers

Stats

Asked: 2015-11-26 14:51:36 +0100

Seen: 31,639 times

Last updated: Feb 20 '16