On Thursday, 29 October 2015 04:12:36 UTC-6, Benedikt Magnússon wrote:
>
> 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"
>

My understanding is that this is normal R output and the plot is created. 
You just don't see it because it is in a wrong directory.
 

>
> Andrey:
> Do you think it is possible to use the sage_salvus.py code in Sage Cell?
>

Yes, I am looking into it. Definitely will not start working today, but 
perhaps in a week or so I can fix it so that you get a link to "general 
files" created from R and plots are displayed automatically.


> One more question, is there some log file for sage cell which I dig into?
>
See
https://github.com/sagemath/sagecell/blob/master/log.py
which works in default configuration (I guess messages will just go to your 
syslog), as well as
https://github.com/sagemath/sagecell/blob/master/contrib/vm/container_manager.py#L171
and
https://github.com/sagemath/sagecell/blob/master/contrib/vm/compute_node/etc/rsyslog.d/sagecell.conf
which are used "in production": there are detailed logs inside of each 
container and a summary one on the host.

I doubt these logs are very useful with debugging R (or Sage) issues since 
from the point of view of the cell server "everything works", you just 
don't have access to results.

>
> -Benedikt
>
> On Monday, October 26, 2015 at 12:13:08 PM UTC, Benedikt Magnússon wrote:
>>
>> Hi
>>
>> 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?
>> 2. Is it possible to get Octave non-ascii plots in sagecell?
>>
>> When I look at the log files (./sage/logs/pkgs/r-3.2.2.p0.log) it seems 
>> that X11 and png is used:
>> "using X11 ... yes" etc.  
>> Btw I'm using xubuntu 15.10. 
>>
>> Cheers,
>> Benedikt
>>
>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to