Opened 10 years ago
Last modified 10 years ago
#13121 closed enhancement
Upgrade sagenb to 0.9.1 — at Version 10
Reported by:  kini  Owned by:  jason, mpatel, was 

Priority:  major  Milestone:  sage5.4 
Component:  notebook  Keywords:  sagenb 
Cc:  jhpalmieri, gutow, jyeo, rbeezer  Merged in:  
Authors:  Reviewers:  
Report Upstream:  N/A  Work issues:  
Branch:  Commit:  
Dependencies:  #11080, #9774, #8473, #11913, #12299  Stopgaps: 
Description (last modified by )
This is a followup to #11080. During the review process of #11080, which stretched for quite a while, at some point we decided to have a feature freeze on the version of sagenb 0.9.x associated with #11080, just to simplify the review process. The purpose of this ticket is to incorporate some new features, bugfixes, code refactoring, etc. into the version of sagenb shipped with Sage, beyond what was reviewed in #11080. sagenb 0.9.1 contains the following (among other things):
 refactoring of the startup code, uWSGI and Tornado added as possible WSGI servers
 code allowing .sws files to be uploaded by supplying a URL pointing to the .sws as an argument to the upload page's URL
 new dependency on webassets for js/css autominification (not currently used in the master branch)
 the mathjax branch, and a doctest fix in sphinxify.py (#9774 depends on and contributed to this)
 support for uploading .sws files from the local disk via the command line (#8473 basically is this)
 refactoring of sageinspect to not have a duplication of code between the notebook and the Sage library (#11913 depends on this)
 Upgrading Jmol again and allowing for advanced interactive features more easily, solve some memory issues (#12299)
Changes not in sagenb itself but in how sagenb is incorporated into sage:
 No repository will be installed with sagenb  developers will need to clone sagenb themselves and install the new clone into their Sage installation manually (which is not difficult).
SPKG: http://wstein.org/home/keshav/files/sagenb0.9.1.spkg (a comparatively svelte 13 MB)
cd SAGE_ROOT cd local/bin hg qimport P http://trac.sagemath.org/sage_trac/rawattachment/ticket/9774/trac_9774scriptsmathjax.patch cd ../../devel/sage hg qimport P http://trac.sagemath.org/sage_trac/rawattachment/ticket/9774/trac_9774mathjaxtry6.patch hg qimport P http://trac.sagemath.org/sage_trac/rawattachment/ticket/11913/trac_11913sage.patch hg qimport P http://trac.sagemath.org/sage_trac/rawattachment/ticket/12299/trac_12299allinone.patch cd ../../ ./sage br
Change History (10)
comment:1 Changed 10 years ago by
 Description modified (diff)
 Milestone changed from sage5.1 to sage5.2
comment:2 Changed 10 years ago by
 Cc jhpalmieri added
comment:3 Changed 10 years ago by
 Description modified (diff)
comment:4 Changed 10 years ago by
 Dependencies changed from #11080 to #11080, #9774, #8473, #11913
 Description modified (diff)
comment:5 Changed 10 years ago by
 Dependencies changed from #11080, #9774, #8473, #11913 to #11080, #9774, #8473, #11913, #12299
 Description modified (diff)
comment:6 Changed 10 years ago by
 Description modified (diff)
 Status changed from new to needs_review
I've released 0.9.1. The SPKG is here. Please test and review!
comment:7 Changed 10 years ago by
 Status changed from needs_review to needs_work
In spkginstall, the check
if [ n $SAGE64 ]; then
needs to take into account that $SAGE64
may be set to "no". According to SAGE_ROOT/spkg/bin/sagearchenv
, it should be unset, "no", or "yes", so you should test that it's set to "yes".
comment:8 Changed 10 years ago by
You should also take this possible change to CPPFLAGS into account. For example:

spkginstall
diff git a/spkginstall b/spkginstall
a b die () { 17 17 export CPATH="$CPATH""$SAGE_LOCAL"/include 18 18 export LIBRARY_PATH="$LIBRARY_PATH""$SAGE_LOCAL"/lib 19 19 20 export CPPFLAGS="I$SAGE_LOCAL/include $CPPFLAGS "20 export CPPFLAGS="I$SAGE_LOCAL/include $CPPFLAGS D_XOPEN_SOURCE=500" 21 21 export LDFLAGS="L$SAGE_LOCAL/lib $LDFLAGS" 22 22 23 if [ n $SAGE64]; then23 if [ $SAGE64 = "yes" ]; then 24 24 echo "Building with extra 64bit flags for MacOS X and Open Solaris." 25 25 if [ z $CFLAG64 ]; then 26 26 CFLAG64=m64
(even better, with a comment explaining why CPPFLAGS has been changed)
comment:9 Changed 10 years ago by
With these changes, this spkg builds on OS X Lion, sage.math, hawk, and skynet machines mark (after installing the openssl spkg from #13126), cicero, iras (with openssl), silius (with openssl), and taurus. So it's looking good to me.
comment:10 Changed 10 years ago by
 Description modified (diff)
See this comment on github pull request 64 to confirm that #12299 will be in 0.9.1.