http://sagenb.org

35 views
Skip to first unread message

William Stein

unread,
Oct 14, 2009, 8:54:15 PM10/14/09
to sage-n...@googlegroups.com, sage-devel
Hi,

Last night I switched the full http://sagenb.org over to use the new
separate-from-Sage Sage notebook code. In particular, this involves
using code for which the evaluation and storage code has been
rewritten. I'm curious how it is working for people/courses/whatever.
If you use http://sagenb.org or have students that use it, and
have something to report, this would be a good thread in which to do
so. Is it generally better than before? Did all your work vanish
without a trace? Is it broken for you?

William

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

ma...@mendelu.cz

unread,
Oct 15, 2009, 3:27:12 AM10/15/09
to sage-devel
Hello, I still have problem with jsmath mentioned at thread "notebook
help needed". See the copy below and Jason's reply. I have the error
message on sagenb.org and I can see Latex code instead of the formula.
No problem of this type with Version 4.1.1.

It would be nice if jsmath on sagenb.org would work from everywhere
without installing any font or anything. I have some students which
study during their emplyment, they access my study material and sage
notebooks from their offices and somtimes they cannot install any
software on these PC's. The same is with PC in lecture halls at our
university used for projection on lectures.

Many thanks if you look at this.

Robert Marik



-------------------------------------
> Do not know if this is relevant, but I get the message
> It looks like jsMath failed to set up properly (error code -7). I
> will try to keep going, but it could get ugly.
> when looking at published worksheets, like http://uw.sagenb.org/home/pub/4/

> I do not have this problem with Sage 4.1.1

> Firefox 3.0.14 and Win Vista,

This is
http://wiki.sagemath.org/faq#IgetanerrorfromjsMathorthemathsymbolsdon...

Hmmm...are the jsmath image fonts spkg still installed on sagenb?
(that
spkg probably needs to be updated to copy itself to the right
directory
now). My guess is that that is the problem.

Sagenb is running 4.1.1, so I think this is not a version thing, but
something to do with the sagenb switchover.

Jason

----------------------------------------

On 15 říj, 02:54, William Stein <wst...@gmail.com> wrote:
> Hi,
>
> Last night I switched the fullhttp://sagenb.orgover to use the new
> separate-from-Sage Sage notebook code.    In particular, this involves
> using code for which the evaluation and storage code has been
> rewritten.  I'm curious how it is working for people/courses/whatever.
>     If you usehttp://sagenb.orgor have students that use it, and

Wilfried Huss

unread,
Oct 15, 2009, 5:43:11 AM10/15/09
to sage-...@googlegroups.com
William Stein schrieb:

> Hi,
>
> Last night I switched the full http://sagenb.org over to use the new
> separate-from-Sage Sage notebook code. In particular, this involves
> using code for which the evaluation and storage code has been
> rewritten. I'm curious how it is working for people/courses/whatever.
> If you use http://sagenb.org or have students that use it, and
> have something to report, this would be a good thread in which to do
> so. Is it generally better than before? Did all your work vanish
> without a trace? Is it broken for you?
>
> William
>
If I use %time in a cell I get no output from the computation.

%time
1+1

gives just:

CPU time: 0.00 s, Wall time: 0.00 s


Pat LeSmithe

unread,
Oct 15, 2009, 10:04:46 AM10/15/09
to sage-...@googlegroups.com, sage-n...@googlegroups.com
ma...@mendelu.cz wrote:
> Hello, I still have problem with jsmath mentioned at thread "notebook
> help needed". See the copy below and Jason's reply. I have the error
> message on sagenb.org and I can see Latex code instead of the formula.
> No problem of this type with Version 4.1.1.
>
> It would be nice if jsmath on sagenb.org would work from everywhere
> without installing any font or anything. I have some students which
> study during their emplyment, they access my study material and sage
> notebooks from their offices and somtimes they cannot install any
> software on these PC's. The same is with PC in lecture halls at our
> university used for projection on lectures.

Sorry, if the following won't help. What if we

* Install *all* jsMath image fonts on sagenb.org
* Silently fall back to using image fonts if TeX fonts are not available
* Put a "font upgrade" section on the help or user settings pages

?

By the way, is Sage set up to take advantage of every jsMath font? Or
do we still need to map some LaTeX fonts to the corresponding jsMath fonts?

Jason Grout

unread,
Oct 15, 2009, 10:38:48 AM10/15/09
to sage-...@googlegroups.com
Pat LeSmithe wrote:

> * Install *all* jsMath image fonts on sagenb.org
> * Silently fall back to using image fonts if TeX fonts are not available


This is what was done in the sage notebook a few days ago. William had
installed the optional jsmath-image-fonts spkg a long time ago. What
probably happened is that no one rebased the jsmath-image-fonts to copy
to the right javascript directory, and since these all moved around with
the new notebook code, everything is broken with respect to this spkg now.

A solution is to modify the spkg to install to the right location, and
install it again on sagenb.org.


> * Put a "font upgrade" section on the help or user settings pages

This would be a good idea, as well as making the error that pops up when
trying to print image fonts a little more useful and specific to Sage.

Jason


--
Jason Grout

Harald Schilly

unread,
Oct 15, 2009, 11:00:24 AM10/15/09
to sage-n...@googlegroups.com, sage-devel
On Thu, Oct 15, 2009 at 02:54, William Stein <wst...@gmail.com> wrote:
>  I'm curious how it is working for people/courses/whatever.

sagenb.org is not loading for me, probably down (but no error so far).
it's 8am sage server time.

H

ma...@mendelu.cz

unread,
Oct 15, 2009, 11:35:02 AM10/15/09
to sage-devel


On 15 říj, 16:38, Jason Grout <jason-s...@creativetrax.com> wrote:
> Pat LeSmithe wrote:
> >  * Install *all* jsMath image fonts on sagenb.org
> >  * Silently fall back to using image fonts if TeX fonts are not available
>
> This is what was done in the sage notebook a few days ago.  William had
> installed the optional jsmath-image-fonts spkg a long time ago.  What
> probably happened is that no one rebased the jsmath-image-fonts to copy
> to the right javascript directory, and since these all moved around with
> the new notebook code, everything is broken with respect to this spkg now.
>
> A solution is to modify the spkg to install to the right location, and
> install it again on sagenb.org.
>

Installed 4.1.2. and the old spkg file with image fonts.
I got this error
I copied the image fonts from /opt/sage/local/notebook/javascript/
jsmath to /opt/sage/local/lib/python2.6/site-packages/sagenb/data/
javascript/jsmath and everything works fine.

Thank you for the pointers.

Robert Marik

Rob Beezer

unread,
Oct 15, 2009, 11:49:35 AM10/15/09
to sage-devel
Homework was due last night at midnight (Seattle time). So half are
readable for me on my desktop, half are not, since most students
waited until the last minute to create their worksheet. (Imagine
that.) I just polled the students and the readable ones were built
on our campus server, the unreadable ones were built at sagenb.org.
I'm getting a blank error page locally with a message at the command
line where I started the server about not finding some temporary
directory on my local machine for the unreadable ones.

I can grade my homework on sagenb.org once it comes back up, so its no
problem. Mostly reporting so others know what might happen.

Are we expecting the worksheet format to have changed so much that
worksheets won't load, or should I provide more detailed info here on
failures?

Rob

Jason Grout

unread,
Oct 15, 2009, 11:55:20 AM10/15/09
to sage-...@googlegroups.com

Thanks. This issue is now tracked at
http://trac.sagemath.org/sage_trac/ticket/7229

Jason


--
Jason Grout

William Stein

unread,
Oct 15, 2009, 12:10:21 PM10/15/09
to sage-...@googlegroups.com

Yes, the worksheet format on sagenb.org has changed and is not
backward compatible. You can't load a worksheet created with the new
notebook into an old notebook server.

If you are desparate you can "tar jxvf" the worksheet.sws file. Inside
there is a file "worksheet.html", which you an paste into a notebook
(using "edit") and you'll get the worksheet.

The actual server itself got hammered extremely hard at about 7-8am,
and I've had to reboot it. It will be fully back online within 5
minutes.

-- William

kcrisman

unread,
Oct 15, 2009, 12:50:38 PM10/15/09
to sage-devel
>
> Yes, the worksheet format on sagenb.org has changed and is not
> backward compatible. You can't load a worksheet created with the new
> notebook into an old notebook server.
>
> If you are desparate you can "tar jxvf" the worksheet.sws file. Inside
> there is a file "worksheet.html", which you an paste into a notebook
> (using "edit") and you'll get the worksheet.

Just to remind those working on the notebook, there is probably a
ticket for "download just the worksheet file" somewhere :) Not that
it's tops on the priority list, but hopefully someone will make it
happen over the next few months.

- kcrisman

William Stein

unread,
Oct 15, 2009, 12:52:44 PM10/15/09
to sage-...@googlegroups.com

Yes, that will be easy.

Also, sws worksheets downloaded using the new version of the notebook
only include the images, DATA directory and raw text of the worksheet.
The input code, snapshots, etc., are no longer included (people
really didn't like snapshots being included!).

William

ma...@mendelu.cz

unread,
Oct 15, 2009, 12:54:15 PM10/15/09
to sage-devel

On 15 říj, 17:55, Jason Grout <jason-s...@creativetrax.com> wrote:
> ma...@mendelu.cz wrote:
>
> Thanks.  This issue is now tracked athttp://trac.sagemath.org/sage_trac/ticket/7229
>

From the manual I have an impression that it is sufficient to download
the spkg file, unpack, fix (perhaps only one line) in the install
script spkg-install, pack again as jsmath-image-fonts-1.4, test on
fresh install of 4.1.2 and post new spkg to trac server.

Right?

If yes, I can do it tomorrow (we have evening in Europe).

Robert M.

William Stein

unread,
Oct 15, 2009, 12:57:57 PM10/15/09
to sage-...@googlegroups.com
On Thu, Oct 15, 2009 at 9:54 AM, ma...@mendelu.cz <ma...@mendelu.cz> wrote:
>
>
> On 15 říj, 17:55, Jason Grout <jason-s...@creativetrax.com> wrote:
>> ma...@mendelu.cz wrote:
>>
>> Thanks.  This issue is now tracked athttp://trac.sagemath.org/sage_trac/ticket/7229
>>
>
> From the manual I have an impression that it is sufficient to download
> the spkg file, unpack, fix (perhaps only one line) in the install
> script spkg-install, pack again as jsmath-image-fonts-1.4, test on
> fresh install of 4.1.2 and post new spkg to trac server.
>
> Right?

Yes. And ping me as soon as you do it, since I can review it.

William

>
> If yes, I can do it tomorrow (we have evening in Europe).
>
> Robert M.
> >
>



ma...@mendelu.cz

unread,
Oct 15, 2009, 5:25:04 PM10/15/09
to sage-devel


On 15 říj, 18:57, William Stein <wst...@gmail.com> wrote:
> Yes.  And ping me as soon as you do it, since I can review it.
>
> William

The fixed spkg file is at http://user.mendelu.cz/marik/temp/jsmath-image-fonts-1.4.spkg
(cannot upload to trac server due to the filesize limit)

Robert

William Stein

unread,
Oct 15, 2009, 5:28:09 PM10/15/09
to sage-...@googlegroups.com

The convention for spkg's is to always post a link at the trac
ticket, which is exactly what you did. Thanks!

William

William Stein

unread,
Oct 15, 2009, 5:35:20 PM10/15/09
to sage-...@googlegroups.com

When I was reviewing it I ended up making more changes than you. So
now somebody else has to review the new version:

http://trac.sagemath.org/sage_trac/ticket/7229

William

Reply all
Reply to author
Forward
0 new messages