sage cell server

91 views
Skip to first unread message

Jason Grout

unread,
Apr 5, 2013, 7:02:44 PM4/5/13
to sage-notebook
We (Keith Clawson and I) just made a major change to the Sage cell
server that hopefully you'll never notice :). It's now being
load-balanced between 4 different virtual machines on two different
computers in two different data centers (instead of just running on one
computer). I copied the permalink database over, so all of your links
should still work.

Please let us know if you notice something wrong.

Thanks,

Jason

--
Jason Grout

William Stein

unread,
Apr 5, 2013, 11:21:18 PM4/5/13
to sage-n...@googlegroups.com
Great work!!
> --
> You received this message because you are subscribed to the Google Groups
> "sage-notebook" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-noteboo...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-notebook?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

kcrisman

unread,
Apr 6, 2013, 10:33:38 AM4/6/13
to sage-n...@googlegroups.com
Thanks for your continuing great work!

Norbert Domes

unread,
Apr 6, 2013, 3:08:21 PM4/6/13
to sage-n...@googlegroups.com
Do you mean  aleph.sagemath.org   ?

I have got some trouble with sage code that used to work.

@interact

def spezial(m = slider(1,4,1,1),
            n = slider(1,4,1,1),
            r = slider(1,4,1,1),           
            A = input_grid(1,3,[1,-5,5],label='k , ymin , ymax') ):
   
    k = A[0][0]; ymin= A[0][1]; ymax=A[0][2]
    h(x) = k*(x+1)^m*(x-1)^n*(x-2)^r
    view(h); view(h.expand())
    graph = point([(1,0),(-1,0),(2,0),(0,h(0))],rgbcolor='red',pointsize=20)
    graph += text('%s-fach' %(m), (-1,0.5),rgbcolor='green')
    graph += text('%s-fach' %(n), (1,0.5),rgbcolor='green')
    graph += text('%s-fach' %(r), (2,0.5),rgbcolor='green')
    graph += plot(h,xmin=-2,xmax= 3)
    show(graph,xmin=-2,xmax= 3, ymin=ymin ,ymax=ymax)


I got this error message:

ERROR: Internal Python error in the inspect module.
Below is the traceback from this internal error.

Traceback (most recent call last):
  File "/home/cellserver/sagecell/ipython/IPython/core/ultratb.py", line 759, in structured_traceback
    records = _fixed_getinnerframes(etb, context, tb_offset)
  File "/home/cellserver/sagecell/ipython/IPython/core/ultratb.py", line 242, in _fixed_getinnerframes
    records  = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
  File "/home/cellserver/sagecell/sage-5.8/local/lib/python/inspect.py", line 1043, in getinnerframes
    framelist.append((tb.tb_frame,) + getframeinfo(tb, context))
  File "/home/cellserver/sagecell/sage-5.8/local/lib/python/inspect.py", line 1003, in getframeinfo
    filename = getsourcefile(frame) or getfile(frame)
  File "/home/cellserver/sagecell/sage-5.8/local/lib/python/inspect.py", line 454, in getsourcefile
    if hasattr(getmodule(object, filename), '__loader__'):
  File "/home/cellserver/sagecell/sage-5.8/local/lib/python/inspect.py", line 483, in getmodule
    file = getabsfile(object, _filename)
  File "/home/cellserver/sagecell/sage-5.8/local/lib/python/inspect.py", line 467, in getabsfile
    return os.path.normcase(os.path.abspath(_filename))
  File "/home/cellserver/sagecell/sage-5.8/local/lib/python/posixpath.py", line 347, in abspath
    cwd = os.getcwd()
OSError: [Errno 2] No such file or directory
Unfortunately, your original traceback can not be constructed.

I can't see any hint what to do making the code work again.

Norbert

Jason Grout

unread,
Apr 6, 2013, 3:48:27 PM4/6/13
to sage-n...@googlegroups.com
On 4/6/13 2:08 PM, Norbert Domes wrote:
> Do you mean aleph.sagemath.org ?
>
> I have got some trouble with sage code that used to work.

Thanks. I saw that error too once or twice, but it seemed to be pretty
intermittent. I still have a script that reboots the server when it
isn't working, and it probably restarted that server before I checked.
I don't see an error right now.

I'll have to look at this next week. Thanks for reporting it.

Jason

Andrey Novoseltsev

unread,
Apr 6, 2013, 11:35:56 PM4/6/13
to sage-notebook
On Apr 5, 5:02 pm, Jason Grout <jason-s...@creativetrax.com> wrote:
> We (Keith Clawson and I) just made a major change to the Sage cell
> server that hopefully you'll never notice :).  It's now being
> load-balanced between 4 different virtual machines on two different
> computers in two different data centers (instead of just running on one
> computer).  I copied the permalink database over, so all of your links
> should still work.
>

Awesome! Will setup instructions and restarting scripts be publicly
available? We are interested in setting up such a distributed server
on our campus.

Thank you!
Andrey

Jason Grout

unread,
Apr 8, 2013, 11:01:44 PM4/8/13
to sage-n...@googlegroups.com
Some of the scripts are already available:
https://github.com/sagemath/sagecell/tree/master/contrib/server (but
they aren't very elegant; we're in the process of making it much
better). I'm planning on making everything I do on the cell server
openly available.

Thanks,

Jason



Reply all
Reply to author
Forward
0 new messages