Sage: Difference between revisions

From miki
Jump to navigation Jump to search
(New page: == Installation == Install instruction for Ubuntu - using binary image ''[http://www.sagemath.org/download.html sage-3.2.1-Ubuntu-x86_64-opteron-x86_64-Linux.tar.gz]''. Script below will ...)
 
No edit summary
Line 1: Line 1:
== Installation ==
== Installation ==


Install instruction for Ubuntu - using binary image ''[http://www.sagemath.org/download.html sage-3.2.1-Ubuntu-x86_64-opteron-x86_64-Linux.tar.gz]''.
Install instruction for Ubuntu - using binary image ''[http://www.sagemath.org/download.html sage-3.2.1-ubuntu_32bit-xeon-i686-Linux.tar.gz]''.
Script below will install sage in <tt>/usr/local/sage-3.2.1</tt>, and create a copy of <tt>sage</tt> in path <tt>/usr/local/bin</tt>.
Script below will install sage in <tt>/usr/local/sage-3.2.1</tt>, and create a copy of <tt>sage</tt> in path <tt>/usr/local/bin</tt>.


<source lang="bash">
<source lang="bash">
(as root)
# (as root)

% cd /usr/local
% cd /usr/local
% tar -xvzf .../sage-3.2.1-Ubuntu-x86_64-opteron-x86_64-Linux.tar.gz
% tar -xvzf .../sage-3.2.1-ubuntu_32bit-xeon-i686-Linux.tar.gz
% mv sage-3.2.1-Ubuntu-x86_64-opteron-x86_64-Linux sage-3.2.1
% mv sage-3.2.1-Ubuntu-x86_64-opteron-x86_64-Linux sage-3.2.1
% chmod a+rX -R sage-3.2.1
% chmod a+rX -R sage-3.2.1
Line 21: Line 22:


=== Notebook ===
=== Notebook ===
Notebook is the html interface to Sage. It is launched with the command <tt>notebook</tt> (see also ([http://www.sagemath.org/doc/ref/module-sage.server.notebook.notebook.html The Sage Notebook object]).
To have notebook available on any interface, at port 8000:


<source lang="bash">
<source lang="bash">
% sage
% sage
sage> notebook(address='',port=8000)
sage> notebook(address='',port=8000) # To make notebook available on port 8000, even to remote computer
sage> notebook(address='',port=8000, require_login=False) # No login necessary
sage> notebook(pretty_print=False) # To enable LaTeX pretty print by default in all worksheets
sage> notebook? # Get help on notebook
</source>
</source>

([http://www.sagemath.org/doc/ref/module-sage.server.notebook.notebook.html The Sage Notebook object]).

Revision as of 23:54, 17 December 2008

Installation

Install instruction for Ubuntu - using binary image sage-3.2.1-ubuntu_32bit-xeon-i686-Linux.tar.gz. Script below will install sage in /usr/local/sage-3.2.1, and create a copy of sage in path /usr/local/bin.

# (as root)

% cd /usr/local
% tar -xvzf .../sage-3.2.1-ubuntu_32bit-xeon-i686-Linux.tar.gz
% mv sage-3.2.1-Ubuntu-x86_64-opteron-x86_64-Linux sage-3.2.1
% chmod a+rX -R sage-3.2.1     
% cp /usr/local/sage-3.2.1/sage /usr/local/bin
% vi /usr/local/bin/sage
#  --> change SAGE_ROOT to /usr/local/sage-3.2.1

After installation, launch sage from root again because Sage needs to update some links, create files, etc...

% sage

Notebook

Notebook is the html interface to Sage. It is launched with the command notebook (see also (The Sage Notebook object).

% sage
sage> notebook(address='',port=8000)                       # To make notebook available on port 8000, even to remote computer
sage> notebook(address='',port=8000, require_login=False)  # No login necessary
sage> notebook(pretty_print=False)                         # To enable LaTeX pretty print by default in all worksheets
sage> notebook?                                            # Get help on notebook