• This repository has been archived on 18/Jun/2020
  • Stars
    star
    117
  • Rank 300,161 (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,018
star
2

sage

Main repository of SageMath
Python
1,282
star
3

sage-windows

Build tools for the Sagemath Windows installer
Shell
348
star
4

sagecell

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

cloud

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

sage-shell-mode

Emacs front end for SageMath
Emacs Lisp
98
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
TeX
59
star
9

docker-images

Dockerfiles for Sage
Makefile
54
star
10

cysignals

cysignals: interrupt and signal handling for Cython
Cython
44
star
11

website

this is the code for the sagemath.org website
HTML
39
star
12

sagelib

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

sagemath.github.io

www.sagemath.org files - edit the https://github.com/sagemath/website repository, not this one here!
HTML
34
star
14

ob-sagemath

org-babel integration with SageMath
Emacs Lisp
32
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
Cython
31
star
17

sage-binder-env

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

publications

Generate the publication pages listing documents citing Sage
TeX
24
star
19

sage_sample

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

binary-pkg

Tools for creating binary tarballs
Python
13
star
21

git-trac-command

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

pari-jupyter

Jupyter kernel for PARI/GP
JavaScript
12
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 documentation files. Development happens here: https://github.com/sagemath/sage
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

FlintQS

Quadratic Sieve
C++
8
star
30

memory_allocator

Cython extension class to allocate memory
Cython
8
star
31

grant-europe

The H2020 Grant proposal.
TeX
7
star
32

pplpy

Python wrapper to the PPL library
Cython
7
star
33

auto-complete-sage

An auto-complete source for sage-shell-mode
Emacs Lisp
7
star
34

sage-numerical-backends-gurobi

Gurobi mixed integer linear programming backend for SageMath - 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
7
star
35

sage-explorer

A Jupyter widget for exploring SageMath objects
Python
6
star
36

sagesmc

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

threejs-sage

Custom build of Three.js for SageMath
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
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 - 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

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++
2
star
54

trac-githooks

Python
2
star
55

sage-numerical-backends-cplex

CPLEX mixed integer linear programming backend for SageMath - 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
56

utmost-website

UTMOST Website
Python
2
star
57

codemirror-sage-mode

for developing a codemirror sage mode
1
star
58

company-sage

Emacs Lisp
1
star
59

combinat

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

files

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

asv-data

Collects doctest timings from the Sage repository for speed regression testing with Airspeed Velocity
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