I wish to be able to plot in Octave/R inside a sagecell.
Therefore, I just set up a sagecell server using the instructions here
https://github.com/sagemath/sagecell
I compiled my own sagecell server because when you use https://sagecell.sagemath.org
you get the following when trying to plot in R:
"Error in png() : X11 is not available"
https://sagecell.sagemath.org/?z=eJwryMkv0UjWMNRRMNZRMNNRMNFRsNTUBABEDAT8&lang=r
and in Octave you only get a Ascii plot
https://sagecell.sagemath.org/?z=eJwryMkv0Yg21DGM1QQAFu8DVw==&lang=octave
Using my own server plotting in R gives me nothing
(not even "Error in png() : X11 is not available")
and Octave still gives me only Ascii.
I have two related questions:
1. Is it possible to get R plots in sagecell?
Thanks for the replies.kcrisman:I already installed xorg-dev, as sugested at dan-erik's blog.Using dev.off() gives me "null device 1"
Andrey:Do you think it is possible to use the sage_salvus.py code in Sage Cell?
One more question, is there some log file for sage cell which I dig into?
Thanks -- I've made a ticket:
https://github.com/sagemathinc/smc/issues/234
Where's a link to exactly your code (so I can add it to the SMC ticket)?
Hi
I wish to be able to plot in Octave/R inside a sagecell.
and in Octave you only get a Ascii plot
https://sagecell.sagemath.org/?z=eJwryMkv0Yg21DGM1QQAFu8DVw==&lang=octave
My understanding is that (unlike for R) we do not try to do anything for Octave plotting, so everything is "default". Plotting commands in Octave use either gnuplot or OpenGL, but it seems that in our setup only gnuplot is available. How extractly it is used I don't know, but my guess is that Octave creates some input file and then passes it to "gnuplot" and you have an option to change the name of the called binary and supply some options to it. For whatever reason, default options result in just ASCII plot in SageMathCell and SageNB. When I try to add explicit commands for saving in a particular format I am just getting the same ASCII plot one more time and some warnings. Starting Octave from a local terminal allows me to open plots in a new window, while saving files works but still shows warning about missing things. It would be nice if someone who knows Octave and gnuplot figured out what do we need to do to get some plots and no warnings - I am stopping for now.