First time here? Check out the FAQ!

Ask Your Question
2

Launch Jupyter notebook from Sage?

asked 9 years ago

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?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 9 years ago

tmonteil gravatar image

updated 9 years ago

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...

Preview: (hide)
link
1

answered 9 years ago

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

Preview: (hide)
link

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: 9 years ago

Seen: 32,042 times

Last updated: Feb 20 '16