Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Unofficial sage-5.2.alpha0 for notebook development

71 views
Skip to first unread message

Jeroen Demeyer

unread,
Jun 10, 2012, 4:01:02 PM6/10/12
to sage-n...@googlegroups.com, sage-r...@googlegroups.com
Dear Notebook lovers,

I have made an official sage-5.2.alpha0 release merging the flask-sagenb
ticket #11080 and its dependencies, except for the documentation ticket
#12229 which needs work. This might be useful for notebook development.


Source archive:

http://boxen.math.washington.edu/home/release/sage-5.2.alpha0/sage-5.2.alpha0.tar

Upgrade path:

http://boxen.math.washington.edu/home/release/sage-5.2.alpha0/sage-5.2.alpha0/


== Tickets ==

* We closed 6 tickets in this release. For details, see

http://boxen.math.washington.edu/home/release/sage-5.2.alpha0/tickets.html

Closed tickets:

#7003: Update jmol [Reviewed by Jason Grout]

Merged in sage-5.2.alpha0:

#11078: William Stein, Jonathan Gutow: jmol in the flask notebook
[Reviewed by Jason Grout]
#11080: Mike Hansen, Rado Kirov, William Stein, Jason Grout: move
notebook to flask/wsgi-based notebook [Reviewed by Rado Kirov, Dan
Drake, Jason Grout, Simon King, Dmitrii Pasechnik]
#11503: Jonathan Gutow: Make new spkg to install Jmol in
SAGE_LOCAL/share [Reviewed by Dan Drake, Jason Grout, Punarbasu Purkayastha]
#11874: Rado Kirov, Jason Grout: Remove twisted spkg [Reviewed by
Dmitrii Pasechnik, Jason Grout]
#12327: Ivan Andrus: Improve loading page of Mac App [Reviewed by
Karl-Dieter Crisman]

Keshav Kini

unread,
Jun 10, 2012, 11:08:54 PM6/10/12
to sage-n...@googlegroups.com, sage-r...@googlegroups.com
Thanks, Jeroen! I'm building it now.

-Keshav

Maarten Derickx

unread,
Jun 13, 2012, 12:21:59 PM6/13/12
to sage-r...@googlegroups.com, sage-n...@googlegroups.com
Indeed thank you, this is very usefull for trying to play around with the new flask notebook without having to go to the trouble of applying #11080 and it's dependancy's which is non trivial.

I build and ran al test on my debian server and got one failure.


mderickx@md:~/sage_installs/sage-5.2.alpha0$ ./sage -testall
... a lot of tests ...
sage -t  -force_lib "devel/sagenb-main/sagenb/notebook/user_manager.py"
         [1.3 s]

----------------------------------------------------------------------
The following tests failed:


        sage -t  -force_lib "devel/sage/sage/tests/cmdline.py"
Total time for all tests: 6235.2 seconds
Please see /home/mderickx/.sage//tmp/test.log for the complete log from this test.
mderickx@md:~/sage_installs/sage-5.2.alpha0$



retrying this test seperatly gives



mderickx@md:~/sage_installs/sage-5.2.alpha0$ ./sage -t  -force_lib "devel/sage/sage/tests/cmdline.py"
sage -t -force_lib "devel/sage/sage/tests/cmdline.py"      
**********************************************************************
File "/home/mderickx/sage_installs/sage-5.2.alpha0/devel/sage/sage/tests/cmdline.py", line 314:
    sage: err
Expected:
    ''
Got:
    'WARNING: Configuration file ipythonrc not found. Ignoring request.\n------------------------------------------------------------\nTraceback (most recent call last):\n  File "/home/mderickx/sage_installs/sage-5.2.alpha0/local/lib/python/site-packages/IPython/ConfigLoader.py", line 66, in load\n    fname = filefind(fname,incpath)\n  File "/home/mderickx/sage_installs/sage-5.2.alpha0/local/lib/python/site-packages/IPython/genutils.py", line 554, in filefind\n    \' not found in current or supplied directories:\' + `alt_dirs`\nIOError: File\'ipythonrc\' not found in current or supplied directories:u\'/home/mderickx/.ipython\'\n\nWARNING: Problems loading configuration file \'ipythonrc\'\nStarting with default -bare bones- configuration.\n'
**********************************************************************
1 items had failures:
   1 of 186 in __main__.example_1
***Test Failed*** 1 failures.
For whitespace errors, see the file /home/mderickx/.sage//tmp/cmdline_14754.py
         [16.6 s]
 
----------------------------------------------------------------------
The following tests failed:


        sage -t -force_lib "devel/sage/sage/tests/cmdline.py"
Total time for all tests: 16.6 seconds
mderickx@md:~/sage_installs/sage-5.2.alpha0$

So it's not a that critical doctest failure. I did not had this doctest failure while testing 5.0 . But when I now test sage 5.0 I get the exact same error. This is probably because I installed ipython system wide on this server between testing sage-5.0 and sage-5.2.alpha0 .

Thanks Maarten

Maarten Derickx

unread,
Jun 13, 2012, 12:23:52 PM6/13/12
to sage-r...@googlegroups.com, sage-n...@googlegroups.com
Ps. I installed ipython 0.12.1 system wide. This might be relevant since ipython had a change in its default configuration system recently.

Keshav Kini

unread,
Jun 13, 2012, 12:54:36 PM6/13/12
to sage-n...@googlegroups.com, sage-r...@googlegroups.com
Right, that is exactly the cause of this. There's even a ticket about
it: http://trac.sagemath.org/sage_trac/ticket/12911

-Keshav

John H Palmieri

unread,
Jun 24, 2012, 3:59:20 PM6/24/12
to sage-r...@googlegroups.com, sage-n...@googlegroups.com
 
On Sunday, June 24, 2012 9:39:41 AM UTC-7, J Elaych wrote:
Sage-5.2.alpha0 built and runs, but 'sage -notebook' launches using the old twisted framework.  How do you make it use the new flask framework?

I think the new notebook still uses twisted. If you see

    2012-06-24 12:56:49-0700 [-] twistd 9.0.0 (.....) starting up.

the old notebook is running. If you see a later version of twistd, like

   2012-06-24 12:55:27-0700 [-] twistd 12.0.0 (....) starting up.

then the new notebook is running.
 
--
John

J Elaych

unread,
Jun 24, 2012, 7:40:38 PM6/24/12
to sage-r...@googlegroups.com, sage-n...@googlegroups.com
I'm confused then.  What is the "flask notebook" and how do we run it?  I see twistd 12.0.0 but no flask in the output or the 'ps'.  I just watched the Sage Cell videos from sd41 and I don't remember any twistd there but there was a lot of Flask.  I guess the cell server is not part of sage then.

kcrisman

unread,
Jun 25, 2012, 10:53:40 AM6/25/12
to sage-r...@googlegroups.com, sage-n...@googlegroups.com


On Sunday, June 24, 2012 7:40:38 PM UTC-4, J Elaych wrote:
I'm confused then.  What is the "flask notebook" and how do we run it?  I see twistd 12.0.0 but no flask in the output or the 'ps'.  I just watched the Sage Cell videos from sd41 and I don't remember any twistd there but there was a lot of Flask.  I guess the cell server is not part of sage then.

I was confused by this too.  Apparently there is a difference between the framework the web app is built on, which is flask, and the process actually serving things up, which is currently twistd but has an option for flask and will soon for a couple other backends.  At least, that is how I understand it - I can't find the place where I asked this.  Default is still twistd, correct.
Reply all
Reply to author
Forward
0 new messages