Ask Your Question
1

sage notebook does not respond to commands in cell

asked 2011-02-28 11:01:10 +0100

jwbales gravatar image

When I type a command in the cell and press 'enter' nothing happens.

Everything works fine from the command line.

I have sage 4.6.1 on ubuntu 10.10

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2011-03-02 10:40:53 +0100

jwbales gravatar image

updated 2011-03-02 10:54:46 +0100

Evidently it is the browser. I am using firefox 3.6.13 on ubuntu 10.10.

So in my .bashrc file I changed the sage browser to opera. Using Opera, the notebook works just fine, with no other changes.

I don't know why it doesn't work in firefox, but don't mind using Opera.

I took kcrisman's advice and tried the online sage notebook using firefox. I got the following message "It looks like jsMath failed to set up properly (error code -7). I will try to keep going, but it could get ugly." I went ahead anyway. To my surprise the 'evaluate' link appeared anyway and seemed to work ok. But the Save, Save & quit, and Discard & quit buttons did not work.

edit flag offensive delete link more

Comments

I'm glad Opera works, but the Firefox problem is strange indeed . . . I just upgraded to 3.6.14 (on Mac), and I don't have these problems. Would you mind doing a little more troubleshooting so we can decide if this is a Firefox or Sage bug (or something else)? First, upgrade Firefox to 3.6.14 (probably won't change anything), and second try disabling your Firefox extensions to see if one of them is interfering with Sage's javascript? After this, I don't have any more ideas . . .

niles gravatar imageniles ( 2011-03-02 11:21:18 +0100 )edit
0

answered 2011-02-28 12:14:37 +0100

jwbales gravatar image

updated 2011-03-01 15:19:24 +0100

Ah, I'm very new to this or I would have immediately noticed that there is no 'evaluate' link.

The problem then is that there is no 'evaluate' link following the cell. I did try shift-enter, thank you for that, but that also had no effect.

The cell is outlined in blue. In addition to the non-appearance of the 'evaluate' link, none of the buttons, such as the 'Save' buttons, work. This points to a javascript issue. However, javascript works fine in other web pages.

I tried deleting the dot-sage file from my home directory and re-starting sage, but still had the same problem. I then removed all the sage files and re-installed. That also did not fix it. Right now I'm out of ideas.

edit flag offensive delete link more

Comments

I'm updating my answer above. Let us know if this doesn't work. The evaluate link should appear on the lower left right after the cell. Are you having any other trouble with the notebook?

kcrisman gravatar imagekcrisman ( 2011-02-28 14:07:31 +0100 )edit

Wow, I have seriously never heard of this. If you could update with your browser and its version, that might help one of our JS experts.

kcrisman gravatar imagekcrisman ( 2011-03-01 21:47:45 +0100 )edit

I've never heard of this either -- maybe you could also try going to the notebook url with a different browser to see if that fixes the issue or not.

niles gravatar imageniles ( 2011-03-02 07:52:28 +0100 )edit

And I just thought of something else - have you used one of the online Sage servers? (See sagemath.org for a list.) If the problem happens there, it's likely your browser.

kcrisman gravatar imagekcrisman ( 2011-03-02 08:00:29 +0100 )edit
0

answered 2011-02-28 11:11:27 +0100

kcrisman gravatar image

updated 2011-02-28 14:09:27 +0100

In a cell, you need to do more than enter. Entering just gives you another line. Such as

a = 5
a+3

would allow you to specify a as 5, but not print it, then print the (calculated) a+3.

To get a line to evaluate, you simply click the 'Evaluate' link at the lower left of the currently active cell, or press Shift and Enter at the same time (Shift-Enter). You do need to have the cell active (blue outline around it) - such as by clicking in it - for this to work. Good luck!

(By the way, for more information about the notebook, click the 'Help' link at the top of it; there are many interesting shortcuts you may find useful on that page.)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-02-28 11:01:10 +0100

Seen: 1,647 times

Last updated: Mar 02 '11