Use IPython notebook from Sage 6.3 (Mac OS X 10.9)

Installation of Sage ( Mac OS X 10.9)

Download the latest Sage from here.

  sage-6.3-x86_64-Darwin-OSX_10.9_x86_64-app.DMG

Copy it to the Applications folder. 

Start the sage from the terminal by adding the following to .bash_profile.

 export SAGE_ROOT=/Applications/Sage-6.3.app/Contents/Resources/sage PATH=$PATH:${SAGE_ROOT}

Then source the saved .bash_profile by

 source ~/.bash_profile

or

. ~/.bash_profile

Make sure ipython is available in Sage.

 $ sage -ipython 

Python 2.7.8 (default, Aug 10 2014, 17:39:35) IPython 2.1.0 -- An enhanced Interactive Python.

August 2014 the current version of IPython that Sage supports to install it so 2.1.0.

Setting in order to be able to use IPython notebook

Setting 

$ sage -i zeromq 
$ sage -i pyzmq

Start-up

Notebook ipython 2.1.0 will be held in the next.

 $ sage -ipython notebook

In the first cell of the notebook from sage.all import * you will environment that can be used is sage if the input.

The following can be useful when it is output to the script of the input line.

 $ sage -ipython notebook --script
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s