Sage Notebook Development

Home

How to do development

  1. Get the Sage Notebook source code. The sagenb package (sagenb-x.y.z.spkg) is included in the spkg/standard subdirectory of the Sage source tarball. It can also be downloaded from the Sage standard package repository. More bleeding edge versions of the sagenb package may be available here.

  2. Extract the source package and develop as usual:
    $ tar -xvf sagenb-x.y.z.spkg
    $ cd sagenb-x.y.z/src/sagenb/
    $ python setup.py install && python setup.py develop
    
    NOTE: If you're developing in Sage, be sure to type sage -python instead of python above. The command setup.py develop above allows you to develop on the package without needing to reinstall the package (via python setup.py install).

  3. Make patches To make a patch, type:
    hg commit
    hg export tip  > test.patch
    
    Read more about Mercurial (the hg command), and consider using Mercurial queues, which make Mercurial much more pleasant to use.

  4. Submit your code Use the Sage trac server, which you can quickly get an account on, and read about the Sage development process (ignore stuff about cloning).

Source repository

There is a source code repository where you can browse the history of the notebook. You can also pull the latest development version of the code:
   hg pull http://boxen.math.washington.edu:8123
   hg update

Resources