Skip to content

Patch 2 for issue 117 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 164 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
89bfa73
Several changes from patches online
nathancarter Jan 9, 2012
2465489
Merge branch 'mathjax' of https://github.com/nathancarter/sagenb into…
Jan 10, 2012
9ef6ead
Remove jsmath
Jan 11, 2012
b40674a
Remove the jsmath.py file.
Jan 11, 2012
8199b55
Remove the jsmath.js file
Jan 11, 2012
2cdc0a7
Remove all occurrences of "jsmath" with appropriate substitutions and…
Jan 11, 2012
e953a02
Take care of a few more mentions of MathJax.
Jan 12, 2012
265ac3b
Handle Mathjax processing for public worksheets
Jan 12, 2012
d76fba3
Fix a bug in separate_script_tags so that the opening tag matches onl…
Jan 12, 2012
0e372f9
Merge branch 'jquery-upgrade' into mathjax
Jan 12, 2012
4580a36
Add MathJax 1.1a, after deleting the png fonts directory.
Jan 12, 2012
8ef70de
Change script include to reference local MathJax installation
Jan 12, 2012
c4cc2ee
Notify mathjax when we are done loading our custom configuration.
Jan 12, 2012
f4e9ac2
Make the custom mathjax configuration similar to Sage's documentation…
Jan 13, 2012
888080a
Document that the functions to generate sphinx configurations when sa…
Jan 13, 2012
8967fcb
The jsmath cell mode was broken before; just remove it, preferring ht…
Jan 13, 2012
d4b053c
eval_script_tags regexp did not correctly stop searching for a beginn…
Jan 14, 2012
6a4eed4
Remove the math_parse functionality; instead, rely on MathJax to pars…
Jan 14, 2012
8d6b0a0
Remove the contains_mathjax javascript function; instead, always call…
Jan 14, 2012
6121f67
Delete obsolete mathjax config file.
Jan 14, 2012
80c325e
Allow the user to change the MathJax font.
Jan 14, 2012
2e60d20
Disable local STIX fonts and the image fonts.
Jan 14, 2012
e84fca8
Have MathJax ignore "input cells" in a published worksheet.
Jan 15, 2012
01b7069
Merge branch 'master' into mathjax
Jan 15, 2012
9603a58
Merge branch 'master' into mathjax
Jan 17, 2012
31d3c91
Work around OSX Lion STIX fonts bug
Jan 18, 2012
ddd8324
First attempt at porting trac #8473
gvol Jan 20, 2012
36dc3b5
Little improvements after testing -- works now
gvol Jan 23, 2012
c308977
Found where to find the interface
gvol Jan 23, 2012
3dc7ebe
Fixed port in docstring
gvol Jan 24, 2012
109b6e9
Merge branch 'master' into mathjax
Feb 11, 2012
7b6b84f
fix doctest that assumed older version of file. Thanks to Keshav Kin…
Feb 11, 2012
efd8a13
Changed url matching to regex
gvol Feb 17, 2012
6108b03
Fixed typo causing uploading to a running server to fail
gvol Feb 17, 2012
075607f
add gettext calls in form pybabel can find them
Mar 20, 2012
9cbeb00
russian translation
Mar 20, 2012
a61eb74
Merge branch 'master' into sws-cmdline
kini May 4, 2012
a5e3269
Update sagenb/translations/ru_RU/LC_MESSAGES/messages.po
dimpase May 25, 2012
dbf2574
added changes discussed and agreed upon the previous commit
dimpase May 27, 2012
e42deee
upload worksheet by url parameters
jsyeo Jun 9, 2012
3c8b588
use title instead of alt to show tooltip
jsyeo Jun 9, 2012
717e14a
if url param exist, load another upload form
jsyeo Jun 11, 2012
317b9ff
Merge pull request #56 from jsyeo/ui
kini Jun 11, 2012
6a8330a
Add @samuela's branch's dependency to spkg-dist
kini Jun 11, 2012
39e12a3
Version bump since we've feature-frozen 0.9.0
kini Jun 11, 2012
3e0309b
Oops, forgot to modify setup.py two commits ago
kini Jun 12, 2012
62099fb
Fix stripping
kini Jun 12, 2012
acec331
Merge branch 'mathjax' of https://github.com/jasongrout/sagenb into n…
jhpalmieri Jun 12, 2012
30e39f0
Merge pull request #4 from jhpalmieri/newmathjax
jasongrout Jun 12, 2012
28e0d89
Merge pull request #30 from jasongrout/mathjax
kini Jun 12, 2012
bfdffa0
Clean up setup.py
kini Jun 12, 2012
d76caae
Delimit EXAMPLES block by triple quotes. See trac #8708.
jhpalmieri Jun 12, 2012
552b32f
Merge pull request #59 from jhpalmieri/triplequotes
kini Jun 12, 2012
1237b7b
Switch MANIFEST.in stuff to git
kini Jun 13, 2012
38327ca
Add some scripts to automate packaging of deps
kini Jun 13, 2012
74a53e4
Put fetch_deps in util/
kini Jun 13, 2012
83c7fab
Moved SPKG.txt to the SPKG's own repo
kini Jun 13, 2012
9ebcc69
Delete old packaging system and some old files
kini Jun 13, 2012
f37537b
Rename depdist.sh to dist.sh; sanitize git repo
kini Jun 13, 2012
97a817f
Remove outdated Makefile
kini Jun 13, 2012
fb1c0de
Merge massive changes
gvol Jun 13, 2012
0da2124
MathJax: fix doctest in sphinxify.py
jhpalmieri Jun 13, 2012
0538713
Fix packaging of git repo
kini Jun 13, 2012
f5a9ba9
Merge pull request #60 from jhpalmieri/sphinxify-doctest
kini Jun 13, 2012
8f14524
Make sure the staging area is clean too
kini Jun 13, 2012
600bd94
Add sagemath/sagenb github remote to the new repo
kini Jun 13, 2012
812a33b
Reconcile Sage's sageinspect with sagenb's sageinspect
jhpalmieri Jun 13, 2012
f0ecab2
Remove hg-git dependencies
kini Jun 13, 2012
efe5ac9
Merge branch 'master' into packaging
kini Jun 14, 2012
1971a68
Trac 12299: add interactive Jmol controls in notebook
gutow May 27, 2012
32be06d
trac 12299: fix jmol in old worksheets
gutow Jun 12, 2012
9143deb
Fix github remote tracking
kini Jun 14, 2012
97dd5b8
distinct URI for suspend/delete
Jun 14, 2012
22c6424
added possibility to delete users
Jun 14, 2012
e2beade
added granting/revoking of admin privileges
Jun 14, 2012
4b82d19
Fixed crashing bug when automatic_login=False
gvol Jun 14, 2012
1147ebd
trac 12299: Server Jmol sync fix and UI tweaks
gutow Jun 14, 2012
41a82f3
Merge pull request #31 from gvol/sws-cmdline
kini Jun 15, 2012
785ad49
Merge pull request #62 from jhpalmieri/sageinspect
kini Jun 15, 2012
ca1a505
Merge pull request #57 from jsyeo/newui
kini Jun 15, 2012
be75ae2
Added tornado as an option for our web server
jsyeo Jun 15, 2012
4b9fa81
remove TODO comment
jsyeo Jun 15, 2012
fe784f6
removed development testing imports
jsyeo Jun 15, 2012
806a5e4
Merge pull request #67 from jsyeo/master
kini Jun 15, 2012
99c95c9
Insert old advice from SPKG.txt
kini Jun 15, 2012
5c5802a
Fix dumb oversight
kini Jun 16, 2012
3afe890
Make packaging the git repo optional
kini Jun 16, 2012
d878e6a
Update babel.cfg, fix pathnames in message.pot
kini Jun 16, 2012
02a5a58
Merge pull request #43 from podshumok/gettexting
kini Jun 16, 2012
62dd205
Merge pull request #45 from podshumok/gettext_ru
kini Jun 16, 2012
201bbf7
Factor out the encode_response import
Jun 17, 2012
6169ef7
Expose an interface for noting read-only users.
Jun 17, 2012
62c3f9f
Implement restrictions for users that are readonly.
Jun 17, 2012
1048e15
Make the readonly file just have usernames, not messages.
Jun 17, 2012
6da6a95
strip lines in readonly file.
Jun 17, 2012
740c2a4
Fix case where file does not exist.
Jun 17, 2012
fd26e4a
Add big warning at the top of the worksheet listing and any worksheet…
Jun 17, 2012
2075038
placed event handlers in javascript file
jsyeo Jun 17, 2012
8cd8331
Merge pull request #68 from jasongrout/security
kini Jun 17, 2012
4edce9e
Add a utility script to check a user's disk space and make them reado…
Jun 18, 2012
a0e3e7d
Merge branch 'master' into usermgmt
Jun 19, 2012
79d3c8a
Merge pull request #64 from kini/trac_12299
kini Jun 20, 2012
f16c221
Clearer status messages
kini Jun 20, 2012
94947d0
Merge pull request #69 from jsyeo/remove_events
kini Jun 20, 2012
8a6ebd0
renamed ambiguous single letter variable
jsyeo Jun 18, 2012
ec3f7ea
removed redundant strips. thereby reducing number of function calls
jsyeo Jun 18, 2012
e9cdf07
fixed doc strings to reflect new changes
jsyeo Jun 18, 2012
89e764e
removed redundant strips
jsyeo Jun 20, 2012
b64d893
use input buttons for evaluate buttons
jsyeo Jun 20, 2012
c89394b
Merge pull request #72 from jsyeo/eval_button
kini Jun 20, 2012
b0ce4e7
Merge pull request #63 from kini/packaging
kini Jun 20, 2012
2a6e196
Mismatched parentheses
kini Jun 22, 2012
bf34867
Version bump to 0.10.0
kini Jun 22, 2012
dbfd5a3
Expand tildes in upload argument and throw an error if file doesn't e…
gvol Jun 25, 2012
39a111e
fix #76
gvol Jun 25, 2012
2190e46
use on function to bind events to dynamically created dom elements
jsyeo Jul 4, 2012
d3b6935
bind the events to the right css class
jsyeo Jul 7, 2012
f4d78e1
Merge pull request #81 from jsyeo/dynamic_events
kini Jul 8, 2012
4f30556
Merge pull request #77 from gvol/upload-expand-tilde
kini Jul 8, 2012
3482721
Merge pull request #78 from gvol/redirect-if-loggedin
kini Jul 8, 2012
759a99b
Merge branch 'master' into usermgmt
Jul 8, 2012
fea9ea6
Merge pull request #71 from jsyeo/remove_strips
kini Jul 8, 2012
b64d6fd
Version bump to 0.10.1
kini Jul 8, 2012
cca8fd3
Merge branch 'master' into usermgmt
Jul 10, 2012
cb7d5f3
add temporary install docs for development of sagenb
ppurka Jul 12, 2012
436049f
Merge pull request #83 from ppurka/install-doc
kini Jul 13, 2012
54204e5
Merge branch 'master' into usermgmt
Jul 15, 2012
64c37d6
translate new sass styles into css
jsyeo Jul 16, 2012
94fb803
change selector to only allow evaluation on active eval_buttons
jsyeo Jul 16, 2012
f74a0f0
Merge pull request #85 from jsyeo/eval_button_clickable
kini Jul 20, 2012
6bf3398
Merge branch 'master' into usermgmt
Jul 25, 2012
0f0ffaa
Fix slider so that vmin=0,vmax=2,stepsize=1 allows middle setting
nbruin Jul 28, 2012
d5b31f1
Merge pull request #89 from nbruin/patch-1
kini Jul 28, 2012
f65b291
Update sagenb/notebook/notebook.py
alfredoport Aug 9, 2012
8964aba
Make pyOpenSSL an optional dependency
kini Aug 22, 2012
e372ced
Don't silently turn off HTTPS
kini Aug 22, 2012
2bc16ba
convert images list to string *after* the jmol rendering tries to app…
jasongrout Aug 24, 2012
6105159
Use Mathjax's jsMath2jax extension to provide backwards compatibility…
jasongrout Aug 24, 2012
0d616c4
Merge branch 'master' into usermgmt
Aug 27, 2012
aea215a
Don't call mathjax twice on interact cell outputs
Aug 28, 2012
a1285e2
Update SSL information in the README
kini Aug 31, 2012
bcbaf88
Merge pull request #95 from kini/wrap-ssl-import
kini Aug 31, 2012
dbabb90
Version bump to 0.10.2
kini Aug 31, 2012
1a94141
Merge branch 'master' into usermgmt
Sep 11, 2012
7aadeb3
With introspection and live documentation in the notebook, fix spurio…
jhpalmieri Sep 17, 2012
f1f1a9f
Fix introspection and live documentation in the notebook
jhpalmieri Sep 18, 2012
37d598c
mmarco's idea to solve "invalid username" error
kcrisman Sep 28, 2012
4498cef
create default users if "admin" doesn't exist
Oct 8, 2012
aa29f96
jQuery reference repair in graph_editor
lukas-lansky Oct 23, 2012
50c3130
Merge pull request #104 from lukas-lansky/graph-editor-jQuery
jasongrout Oct 30, 2012
adcd348
Merge pull request #101 from rmartinjak/issue-47
jasongrout Oct 30, 2012
460ef01
Merge branch 'master' into usermgmt
Oct 30, 2012
be5eb3c
Merge pull request #99 from kcrisman/patch-2
jasongrout Oct 30, 2012
3280031
Merge pull request #97 from jhpalmieri/mathmode
jasongrout Oct 30, 2012
cf421ee
Merge pull request #92 from alfredoport/master
jasongrout Oct 30, 2012
d026aac
two small cosmetic changes
Nov 2, 2012
c65fccb
Merge branch 'master' into usermgmt
Nov 2, 2012
150ac05
Fix admin permission checking
Nov 2, 2012
0ae273b
Merge pull request #66 from rmartinjak/usermgmt
jasongrout Nov 2, 2012
96a3732
Package zope.interface, which is required for twisted
Nov 16, 2012
c384b4e
Update sagenb version number to 0.10.3
Nov 16, 2012
679e43f
Fix the import for openid, as per http://flask.pocoo.org/docs/extensi…
Nov 21, 2012
6a42da6
Merge pull request #115 from jasongrout/openid-import
kini Nov 21, 2012
3cbaaec
1024-bit rsa keys, Darwin, expiration_days
dimpase Nov 30, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
74 changes: 0 additions & 74 deletions .hgignore

This file was deleted.

43 changes: 43 additions & 0 deletions INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
=============================================
Installation of the Sage notebook from github
=============================================
The current development version of the Sage notebook is present in github.
Since this development version is not yet merged into the Sage
distribution, one needs to follow a couple of additional steps to have
a working development version of the Sage notebook.

Installation Steps
------------------
The steps one needs to follow are outlined below.

#. First install the latest development version of Sage from the
`sagemath`_ website.
#. Next, follow the directions in `ticket 13121`_ to upgrade your notebook
to version 0.10.1 (or the latest version).
#. Create a fork of the `sagenb`_ git repository on the github website. To
create the fork, go to `sagenb`_ and click on "Fork" on the upper right
corner of the webpage.
#. Clone your fork on to your local machine as follows. Note that the
``SAGE_ROOT`` variable below corresponds to the directory in which the
Sage distribution is present, and ``username`` is your login name in
github::

$ cd SAGE_ROOT/devel
$ git clone [email protected]:username/sagenb.git sagenb-github
$ rm sagenb
$ ln -s sagenb-github sagenb
$ cd sagenb
$ ../../sage --python setup.py develop

#. You can also add the `sagenb`_ git repository as a remote branch called
``upstream``::

$ git remote add upstream [email protected]:sagemath/sagenb
$ git fetch upstream

#. You are now all set to work with the development version of the Sage
notebook!

.. _sagemath: http://sagemath.org/download-latest.html
.. _`ticket 13121`: http://trac.sagemath.org/sage_trac/ticket/13121
.. _sagenb: https://github.com/sagemath/sagenb
16 changes: 6 additions & 10 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
recursive-include sagenb *
recursive-include sass *
recursive-include util *
graft sagenb
graft sass
graft util
prune sass/src/.sass-cache
recursive-include flask_version *
include *.txt Makefile MANIFEST.in .hgignore .hgtags sdist spkg-dist SPKG.txt go .gitignore README.rst
recursive-include .hg *
prune .hg/git
prune .hg/patches
exclude .hg/git-*
exclude .hg/hgrc
graft flask_version
include *.txt MANIFEST.in .gitignore dist.sh README.rst
prune .git
global-exclude *.pyc *.pyo *.orig *.rej *~ \#* *\# *.sassc *.scssc *.DS_Store
36 changes: 0 additions & 36 deletions Makefile

This file was deleted.

92 changes: 82 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ data is stored in that directory.
SSL support
-----------

SSL is required for OpenID and accessing HTTPS from the Sage shell. Your
Sage install should usually support SSL out of the box, but if you
compiled it from source on a machine without the libssl headers, it may
not. You can check for SSL support by running ``import ssl`` in the Sage
console. If you get an error, then do the following.

1. Install the libssl headers on your system. On Debian-based systems,
one way to do this is to run ``sudo apt-get install libssl-dev``.
2. Recompile Sage's internal Python interpreter by running ``sage -f
python``.
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.



Expand All @@ -53,3 +52,76 @@ Development

See the Sage Developer's guide, part of the Sage documentation, for
instructions.

Miscellaneous Release Instructions
----------------------------------

The following advice for release managers of sagenb is taken from the
old SPKG.txt file that was sitting around. Most of it is probably
outdated, but here it is anyway. It is modified slightly to cause it to
make sense in some cases.

To cut a new release of sagenb, make sure that:

* All changes are committed.

* ``.gitignore`` and ``MANIFEST.in`` are current.

* The notebook runs.

* The doctests pass: ``sage -t --sagenb``

* The notebook will be possible to install from the new SPKG without
an internet connection.

* Any dependencies that must be downloaded can be added in
``util/fetch_deps.py`` and inserted in ``setup.py``.
Dependencies of dependencies need not be put in ``setup.py``,
but need to be put in ``util/fetch_deps.py`` (until we can make
it smarter).

* The Selenium tests pass (optional, for now).

* The localization file ``sagenb.pot`` is up-to-date.

* Run ``pybabel extract -F /path/to/babel.cfg /path/to/project -o
/path/to/sagenb.po`` (get pybabel with ``easy_install
pybabel``).

* Copy the headers from the existing ``sagenb.pot``.

* Replace ``sagenb.pot`` with ``sagenb.po``.

* Then, update the version in ``setup.py`` and commit this change.

* Run ``dist.sh``, optionally with a ``-g`` argument to package
the git repo too.

* Copy the newly generated ``dist/`` directory from the sagenb
repo to the SPKG's root directory and rename it ``src/``
, replacing the ``src/`` directory that is currently there

* Pack up the SPKG with ``sage --pkg --no-compress`` (because
everything in ``src/`` is already compressed)

* Install and test the new spkg: ``sage -f sagenb-*.spkg``

* Don't forget to push all changes in the sagenb repo to github.

Stylesheets (CSS): see ``sass/readme.txt``.

To add a locale to an existing install:

* Create a new locale, or download one from
http://wiki.sagemath.org/i18n . To create a new locale:

* Edit and save a copy of ``sagenb.pot`` using your favorite text
editor or POEdit (http://poedit.net)

* (Recommended) Post the new locale to
http://wiki.sagemath.org/i18n

* Compile your copy via ``msgfmt sagenb.pot -o sagenb.mo``

* Copy ``sagenb.mo`` to ``sagenb/locale/xx_YY/LC_MESSAGES/``, where
xx_YY is a locale code (en_US, pt_BR, en_UK, etc.)
98 changes: 0 additions & 98 deletions SPKG.txt

This file was deleted.

Loading