Ask Your Question

can't get a plot() to show up in shell using VirtualBox

asked 2013-06-11 05:54:08 -0500

Ptarmigan gravatar image

I'm a Sage newbie (and mostly a linux newbie too) running Sage 5.9 in VirtualBox under Windows 7. When I'm in the sage shell and try to plot things, I don't get any error, but no image shows up either. Plotting does work in the notebook.

Is there something obvious (a setting, etc.) that I might be missing to make plots work?

edit retag flag offensive close merge delete


Thanks for the answers. I do have Sage running in Linux at home, but I can't have a dual boot here at school (per our IT department) and my office mates and I also need Windows. Currently what I'm doing is putting the plots into pdf files and then opening them, which seems to be workable.

Ptarmigan gravatar imagePtarmigan ( 2013-06-12 06:25:45 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-06-12 02:26:45 -0500

Volker Braun gravatar image

The commandline is text mode, it doesn't have graphics capability. If you really want a full graphical install then I would suggest you install a full Linux VM and then compile Sage in it. Its fun ;-)

edit flag offensive delete link more


The command line is not that bad ;) It is possible to view images and even watch movies! One justs needs to have framebuffer support built into the kernel and compiled in user applications. For viewing images, there is fbi, and for viewing videos there is mplayer, vlc, xine, etc. :) One can possibly set the png viewer in sage by using sage.misc.viewer.viewer.png_viewer('/usr/bin/fbi') # provided fbi is installed This however didn't work on my system. Not sure why (maybe the `png_viewer` function is broken?). fbi by itself works just fine.

ppurka gravatar imageppurka ( 2013-06-12 03:05:45 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2013-06-11 05:54:08 -0500

Seen: 399 times

Last updated: Jun 12 '13