Hi, einek This is because: When sage is running your code, plot/plot3d generates figure file, and call another program(like jmol) to display it. However, after sage finish running your code, it will delete all temporary files. So jmol cannot display anything.
Solution: add raw_input() to the end of your code to prevent sage from stopping. 在 2010年3月11日星期四UTC+8上午3时53分27秒,einek写道: > > Hi all, > > I just installed Sage and now I'm working through the tutorial. > However, inside notebook I'm unable to generate 3d plots: Issuing i.e. > > x,y = var('x,y') > plot3d(x^2 + y^2, (x,-2,2), (y,-2,2)) > > only yields a gray square without any plots. At the right lower corner > of the square there is a link "Get Image", but clicking on it do not get > the image but jumps the top of the current worksheet (the address of the > link is "http://localhost:8000/home/admin/3/#"). > > On the Sage command line plot3d works, a Jmol window pops up showing the > graphic. Also inside notebook plot3d(..., viewer='tachyon') works. > > Java (OpenJDK) is installed and enabled in the browser. > > In this group, there was a thread > > http://groups.google.com/group/sage-support/browse_thread/thread/150340666982775/ad08c6a84218c53f?lnk=gst&q=plot3d+notebook#ad08c6a84218c53f > describing the same issue, but without giving any solution. > > My system: > > Dell Optiplex GX620, Intel Pentium 630, 1GB RAM > > :~$ uname -a > Linux Adler 2.6.24-27-generic #1 SMP Mon Feb 22 18:17:28 UTC 2010 x86_64 > GNU/Linux > > :~$ lsb_release -d > Description: Ubuntu 8.04.4 LTS > > :~$ sage --version > | Sage Version 4.3.3, Release Date: 2010-02-21 | > > installed tar ball: > sage-4.3.3-linux-64bit-ubuntu_8.04.4_lts-x86_64-Linux.tar.gz > > :~$ java -version > java version "1.6.0_0" > OpenJDK Runtime Environment (build 1.6.0_0-b11) > OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode) > > :~$ firefox --version > Mozilla Firefox 3.0.18, Copyright (c) 1998 - 2010 mozilla.org > > > Any help is appreciated. Thanks in advance > > Eckhard > > -- > Service für Mathematik und Simulation > Dr. Eckhard Kosin, selbständiger Diplom-Mathematiker > > Am Nymphenbad 14 > D-81245 München, Germany > > Tel.: (+49)(+89) 88 88 479 > Tel.,Fax: (+49)(+89) 835 844 > mailto:e...@mathematik-service-kosin.de <javascript:> > http://www.mathematik-service-kosin.de > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.