3D Plot fails

5 views
Skip to first unread message

bjs

unread,
Aug 7, 2008, 11:37:11 AM8/7/08
to sage-support
Hi, When I run this in a notebook:

u, v = var('u,v')
fx = u*v
fy = u
fz = v^2
P = parametric_plot3d([fx, fy, fz], (u, -1, 1), (v, -1, 1),
frame=False, color="yellow")
show(P)

I get the error message:

You do not have Java applets enabled in your web browser, or your
browser is blocking this applet.
Check the warning message from your browser and/or enable Java applets
in
your web browser preferences, or install the Java Runtime Environment
from www.java.com

I'm using Firefox 3.0.1 and have Java and Javascript enabled in
preferences. I have Sun Java 6 Runtime installed and I am running sage
3.0.5 under Ubuntu 8.04.

Can anyone suggest what I am missing?

William Stein

unread,
Aug 7, 2008, 11:40:59 AM8/7/08
to sage-s...@googlegroups.com

I have no clue.

Just one comment -- if you do

show(P, viewer='tachyon')

at least you'll see a 3d plot, though you can't dynamically rotate it...

John Cremona

unread,
Aug 7, 2008, 12:46:14 PM8/7/08
to sage-s...@googlegroups.com
I have had the same error message on a machine running ubuntu 8.04 and
firefox 3.0.1 and all java stuff turned on. There is no "warning
message from your browser" that I can see.

John

2008/8/7 William Stein <wst...@gmail.com>:

Robert Bradshaw

unread,
Aug 7, 2008, 1:16:56 PM8/7/08
to sage-s...@googlegroups.com

I wouldn't be surprised if it's a Firefox 3 security issue. Did you
get any messages about certificates? Did you ever click "accept
once?" Of course it could be something totally different.

- Robert


bjs

unread,
Aug 8, 2008, 12:57:37 AM8/8/08
to sage-support
I've had no warnings or errors or any other notifications from firefox
and I have not accepted any certificates lately. Is there a simple way
of checking that Java is working in firefox? I'm thinking of a
possible install script error re paths or something of that nature.

On Aug 7, 6:16 pm, Robert Bradshaw <rober...@math.washington.edu>
wrote:

Robert Bradshaw

unread,
Aug 8, 2008, 1:12:42 AM8/8/08
to sage-s...@googlegroups.com
On Aug 7, 2008, at 9:57 PM, bjs wrote:

> I've had no warnings or errors or any other notifications from firefox
> and I have not accepted any certificates lately. Is there a simple way
> of checking that Java is working in firefox? I'm thinking of a
> possible install script error re paths or something of that nature.

Google for "example applet" I'm sure that will turn up an example you
could try.

bjs

unread,
Aug 8, 2008, 2:11:25 AM8/8/08
to sage-support
Thanks, I've found a java test at http://www.java.com/en/download/help/testvm.xml
which reports that my jre is not running so this is a java/firefox/
Ubuntu problem not a sage problem. I have posted a question on the
Ubuntu support site and I will post again if and when I find a
solution since I am not the only one with the problem. But thanks
again

On Aug 8, 6:12 am, Robert Bradshaw <rober...@math.washington.edu>

David Joyner

unread,
Aug 8, 2008, 7:40:18 AM8/8/08
to sage-s...@googlegroups.com
I have a similar setup (hardy heron, etc) and use openjdk with no
problems

wdj@hera:~$ java -version
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)

You probably have sun-java5-jdk, etc. If you want to try openjdk, type
sudo apt-cache search openjdk
and it should tell you which deb files to install using
sudo apt-get install ...

John Cremona

unread,
Aug 8, 2008, 7:46:58 AM8/8/08
to sage-s...@googlegroups.com
2008/8/8 David Joyner <wdjo...@gmail.com>:

>
> I have a similar setup (hardy heron, etc) and use openjdk with no
> problems
>
> wdj@hera:~$ java -version
> java version "1.6.0"
> OpenJDK Runtime Environment (build 1.6.0-b09)
> OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)

I just installed that (earlier I installed the sun one but it didn't
work in firefox). But -- after restarting firefox -- it still doesn't
work.

David, is your firefox this one:

Gecko/2008072820 Firefox/3.0.1 ?

John

David Joyner

unread,
Aug 8, 2008, 8:28:55 AM8/8/08
to sage-s...@googlegroups.com
On Fri, Aug 8, 2008 at 7:46 AM, John Cremona <john.c...@gmail.com> wrote:
>
> 2008/8/8 David Joyner <wdjo...@gmail.com>:
>>
>> I have a similar setup (hardy heron, etc) and use openjdk with no
>> problems
>>
>> wdj@hera:~$ java -version
>> java version "1.6.0"
>> OpenJDK Runtime Environment (build 1.6.0-b09)
>> OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)
>
> I just installed that (earlier I installed the sun one but it didn't
> work in firefox). But -- after restarting firefox -- it still doesn't
> work.
>
> David, is your firefox this one:
>
> Gecko/2008072820 Firefox/3.0.1 ?

Yes:

Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008072820
Firefox/3.0.1


I should have added though, I almost always only use the command line.

I just now tried this with the notebook and just got a grey box with
no plot below the cell with the
plot 3d commands.

John Cremona

unread,
Aug 8, 2008, 8:35:04 AM8/8/08
to sage-s...@googlegroups.com
2008/8/8 David Joyner <wdjo...@gmail.com>:

>
> On Fri, Aug 8, 2008 at 7:46 AM, John Cremona <john.c...@gmail.com> wrote:
>>
>> 2008/8/8 David Joyner <wdjo...@gmail.com>:
>>>
>>> I have a similar setup (hardy heron, etc) and use openjdk with no
>>> problems
>>>
>>> wdj@hera:~$ java -version
>>> java version "1.6.0"
>>> OpenJDK Runtime Environment (build 1.6.0-b09)
>>> OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)
>>
>> I just installed that (earlier I installed the sun one but it didn't
>> work in firefox). But -- after restarting firefox -- it still doesn't
>> work.
>>
>> David, is your firefox this one:
>>
>> Gecko/2008072820 Firefox/3.0.1 ?
>
> Yes:
>
> Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008072820
> Firefox/3.0.1
>
Same as mine except US -> GB and no _64.

>
> I should have added though, I almost always only use the command line.
>
> I just now tried this with the notebook and just got a grey box with
> no plot below the cell with the
> plot 3d commands.

OK, so that's consistent. I can also display things like

show(sage.plot.plot3d.shapes.Torus(3,1), figsize=6, aspect_ratio=[1,1,1])

from the command line but not the notebook.

John

Reply all
Reply to author
Forward
0 new messages