• This repository has been archived on 18/Jun/2020
  • Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created almost 13 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sage Notebook (flask), docs in $SAGE_LOCAL/share/doc/sagenb/index.html

This is the standalone Sage Notebook - retired

the lifetime of web-based frontends is short, alas so long, and thanks for all the issues and PRs switch to e.g. jupyter - which is now the default web-based notebook for Sagemath

Most of the notebook does not depend on having Sage installed. Only a few miscellaneous functions are imported from Sage. We welcome help in making the notebook completely independent from Sage, or indeed, any other help with the Sage notebook. Sage notebook development discussions happen on the sage-notebook mailing list.

Installation

Install Sage, then do sage -python setup.py install in the current directory. Optionally, cd doc/ and run make html to build documentation. Then run the notebook from within Sage as follows:

sage: import sagenb.notebook.notebook_object as nb
sage: nb.notebook(directory="mynotebook")

This will create a directory mynotebook.sagenb, and all notebook data is stored in that directory.

SSL support

SSL is required for OpenID and HTTPS support in the notebook. OpenID only requires Python's built-in SSL support, whereas HTTPS support also requires the Python library pyOpenSSL. In order to ensure that these are installed, please follow the instructions in Sage's own README file (look for the section about SSL). If you don't intend to use OpenID for user logins, or HTTPS for connecting to the server, you can safely ignore this section. In particular, if you're installing a copy of Sage for your personal use only, you probably won't need OpenID or HTTPS support in the notebook.

LDAP authentication

HTTPS support in the Python library is required to download and install files, in order to install LDAP authentication support. To enable HTTPS support read the section on SSL in Sage's own README file. Enabling LDAP authentication also requires one to install the LDAP development headers. You can install the LDAP development headers to your system by using your package manager. For instance, on a Debian/Ubuntu Linux system you may install LDAP and SSL by running the following command:

$ sudo apt-get install libldap2-dev libsasl2-dev libssl-dev

Next, use the following commands to install the python-ldap package in Sage:

$ /path/to/sage -sh
$ easy_install python-ldap

Once python-ldap is installed, (re)start the notebook server and the options to setup LDAP authentication will be visible in the "Notebook Settings" section of the "Settings."

Development

Development and issue tracking of sagenb happens primarily on Github at https://github.com/sagemath/sagenb, with certain discussions at the sage-notebook Google group https://groups.google.com/forum/#!forum/sage-notebook.

Instructions for getting started with sagenb development are found in the file HACKING.rst, including how to link a local clone of the source to an existing Sage installation.

See the Sage Developer's guide, part of the Sage documentation, at http://www.sagemath.org/doc/developer/index.html for some further instructions. There is also a useful, if somewhat outdated, overview of the directory structure, evaluation and serving flow at http://wiki.sagemath.org/devel/SageNotebook

Stylesheets (CSS)

See sass/readme.txt for information about how to use sagenb's SCSS files to update its CSS properly.

Localization

The Sage notebook has various localizations available, and welcomes updates to those as well as new ones. The current localizations are available in sagenb/translations.

The file util/translations.py encapsulates much of the Python Babel localization utility in an easy-to-use interface meant for the Sage notebook. We recommend its use to update and create new translations. Full help is available by running the file in the Sage Python shell with the -h argument:

cd $SAGENB_ROOT
sage -python ./util/translations.py -h

A more advanced introduction is in preparation.

Release Instructions

Currently, sagenb is an upstream project from Sage proper. That means any new sagenb release needs to be packaged properly in order to be included in Sage.

Read ReleaseInstr.md for step-by-step details on how to create such a release, including minor changes needed on the Sage side to build/pkgs/sagenb/package-version.txt and the checksum file.

More Repositories

1

sage-archive-2023-02-01

This repository used to be the user-facing mirror of the Sage source tree. As Sage development migrated on 2023-02-01 from https://trac.sagemath.org/ to our new repository on GitHub, https://github.com/sagemath/sage, we have renamed and archived this repository.
Python
2,015
star
2

sage

Main repository of SageMath
Python
1,398
star
3

sage-windows-cygwin

Build tools for the Sagemath Windows installer
Shell
350
star
4

sagecell

The Sage Cell Server---providing a way to embed Sage computations into any web page.
Python
202
star
5

cloud

*MOVED TO* https://github.com/sagemathinc/cocalc
JavaScript
137
star
6

sage-shell-mode

Emacs front end for SageMath
Emacs Lisp
102
star
7

android

Sage's Android App (GSoC 2014)
Java
73
star
8

sagetex

Embed code, results of computations, and plots from the Sage mathematics software suite (https://www.sagemath.org) into LaTeX documents. Source repository for https://pypi.org/project/sagetex/ and https://ctan.org/pkg/sagetex
TeX
58
star
9

docker-images

Dockerfiles for Sage
Makefile
54
star
10

cysignals

cysignals: interrupt and signal handling for Cython. Source repository for https://pypi.org/project/cysignals/
Cython
43
star
11

website

Source for https://www.sagemath.org/; submit Issues/PRs here to update the website
HTML
39
star
12

sagelib

Git mirror of http://hg.sagemath.org/sage-main/
Python
38
star
13

ob-sagemath

org-babel integration with SageMath
Emacs Lisp
34
star
14

sagemath.github.io

Hosting https://www.sagemath.org files; send Issues/PRs to repositories https://github.com/sagemath/website, https://github.com/sagemath/publications, not this one here!
HTML
34
star
15

more-sagemath-tutorials

More SageMath Tutorials: A place to share and evolve tutorials for Sage, with the aim to contribute them to Sage
Jupyter Notebook
32
star
16

cypari2

Python interface to the number theory library PARI/GP. Source repository for https://pypi.org/project/cypari2/
Cython
30
star
17

sage-binder-env

A Binder repo for SageMath computing environment
Jupyter Notebook
27
star
18

publications

Source for https://www.sagemath.org/library-publications.html; submit Issues/PRs here to add/update citations of documents citing Sage
TeX
24
star
19

sage_sample

A sample project illustrating how to write and distribute SageMath extensions
Python
17
star
20

binary-pkg

Tools for creating binary tarballs
Python
14
star
21

git-trac-command

A "git trac" subcommand for git
Python
13
star
22

pari-jupyter

Jupyter kernel for PARI/GP. Source repository for https://pypi.org/project/pari-jupyter/
JavaScript
11
star
23

sagetrac-mirror

Archive of the git branches attached to tickets on https://trac.sagemath.org/ before the migration to GitHub (Jan 30, 2023)
Python
11
star
24

documentation

Only hosting https://doc.sagemath.org/ files. Updates to the documentation must be made with PRs to https://github.com/sagemath/sage, not here.
HTML
11
star
25

sage-workflow

script(s) to help with the transition to a single Sage repository
Python
10
star
26

git-developer-guide

Git version of the Sage developer manual
Python
10
star
27

sage-combinat-widgets

A collection of Jupyter widgets for combinatorial objects in SageMath
Python
8
star
28

sage-patchbot

Sage Patchbot
Python
8
star
29

auto-complete-sage

An auto-complete source for sage-shell-mode
Emacs Lisp
8
star
30

FlintQS

Quadratic Sieve
C++
8
star
31

memory_allocator

Cython extension class to allocate memory. Source repository for https://pypi.org/project/memory-allocator/
Cython
8
star
32

grant-europe

The H2020 Grant proposal.
TeX
7
star
33

pplpy

Python wrapper to the PPL library. Source repository for https://pypi.org/project/pplpy/
Cython
7
star
34

sage-explorer

A Jupyter widget for exploring SageMath objects
Python
6
star
35

sagesmc

The git repo for the SageMathCloud's system-wide Sage install
Python
6
star
36

threejs-sage

Custom build of Three.js for SageMath
6
star
37

sage-numerical-backends-gurobi

Gurobi mixed integer linear programming backend for SageMath. Source repository for https://pypi.org/project/sage-numerical-backends-gurobi/, can be installed on top of distributions providing SageMath. See also https://github.com/sagemath/sage-numerical-backends-cplex and https://github.com/sagemath/sage-numerical-backends-coin
Cython
6
star
38

helm-sage

A helm extension for sage-shell-mode
Emacs Lisp
5
star
39

strongly_regular_graphs_database

A database of strongly regular graphs for Sage
Python
5
star
40

sage-package

Utilities for authoring packages for SageMath. Source repository for https://pypi.org/project/sage-package/
HTML
5
star
41

sage_trac_plugin

Trac plugin used to support Sage development at trac.sagemath.org
Python
5
star
42

office-hours

Virtual office hours on youtube -- notes
4
star
43

sage-migration-preview-2023-02-02

Preview of the import of Trac tickets using https://github.com/sagemath/trac-to-github
4
star
44

p_group_cohomology

Sage package for computing modular cohomology rings of finite groups
Cython
4
star
45

planet

planet.sagemath.org: source in master, files in gh-pages
Python
4
star
46

modular_resolution

modular_resolution, a C library part of p_group_cohomology
Shell
4
star
47

pari-utils

Utility tools for PARI/GP
Python
3
star
48

anything-sage

An anything extension for sage-shell-mode
Emacs Lisp
3
star
49

database_stein_watkins

The Stein-Watkins database of elliptic curves
3
star
50

artwork

collection of various graphics related to SageMath
3
star
51

sage-numerical-backends-coin

COIN-OR mixed integer linear programming backend for SageMath. Source repository for https://pypi.org/project/sage-numerical-backends-coin/, can be installed on top of distributions providing SageMath. See also https://github.com/sagemath/sage-numerical-backends-gurobi and https://github.com/sagemath/sage-numerical-backends-cplex
Cython
3
star
52

sage_trac

Python
2
star
53

trac-githooks

Python
2
star
54

sage-numerical-backends-cplex

CPLEX mixed integer linear programming backend for SageMath. Source repository for https://pypi.org/project/sage-numerical-backends-cplex/, can be installed on top of distributions providing SageMath. See also https://github.com/sagemath/sage-numerical-backends-coin and https://github.com/sagemath/sage-numerical-backends-gurobi
Cython
2
star
55

utmost-website

UTMOST Website
Python
2
star
56

codemirror-sage-mode

for developing a codemirror sage mode
1
star
57

company-sage

Emacs Lisp
1
star
58

combinat

Website combinat.sagemath.org (redirect to https://wiki.sagemath.org/combinat)
HTML
1
star
59

files

skeleton repo for served files on the mirror network
1
star
60

asv-data

Collects doctest timings from the Sage repository for speed regression testing with Airspeed Velocity
1
star
61

giac

Fork of https://salsa.debian.org/science-team/giac for the purpose of tracking the upstream Giac sources at http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source – branch sagemath adds integration testing with SageMath on GH Actions
C++
1
star
62

trac.sagemath.org

GitHub pages for redirecting trac.sagemath.org to the new sagemath/sage GitHub repo
HTML
1
star
63

cloud.sagemath.org

redirect to cocalc
HTML
1
star
64

sage-wheels

Prebuilt wheels of the SageMath distribution
1
star
65

sage-release-management

Utility scripts for release managements
Python
1
star
66

binary-pkg-test

Test for the binary-pkg repo
C++
1
star
67

trac-dump

dump of sage's trac database
1
star
68

sagewiki_to_gh-2022-10-10

Output from the sagewiki-to-github migration script with input = an archive of https://wiki.sagemath.org/ from October 2022
Jupyter Notebook
1
star
69

conway-polynomials

Python interface to Frank LΓΌbeck's Conway polynomial database
Python
1
star