Ask Your Question
1

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

asked 2013-06-11 12:54:08 +0100

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

Comments

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 13:25:45 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-06-12 09:26:45 +0100

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

Comments

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 10:05:45 +0100 )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

Stats

Asked: 2013-06-11 12:54:08 +0100

Seen: 611 times

Last updated: Jun 12 '13