Closed camaramm closed 7 years ago
Hej,
could you try:
import Gadfly
p = Gadfly.plot(x=rand(10), y=rand(10))
display(p)
And what does Gadfly.default_mime()
give you?
I suspect that the problem lies in the fact that pcmanfm is trying to open a html site.
You can use the extra/perl-file-mimeinfo
package to check and set the default program for html pages.
touch test.html
mimeopen -d test.html
Hello vchuravy,
Your suggestion involving display(p)
didn't work as well.
But your suspicion about opening html was right: Gadfly.default_mime()
returns "text/html".
I've installed extra/perl-fime-mimeinfo and set firefox as default program and it worked, I was able to see the graph.
By the way, is there a program/driver better than firefox to display it?
However, there is still an error message:
** (pcmanfm:1143): WARNING **: The directory '~/Templates' doesn't exist, ignoring it
(process:####): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Is it worth worrying about it?
Thank you for now.
Regards.
Yeah you can ignore the message from pcmanfm.
Firefox is a pretty good choice for this. I think the choice to output html was so that you could interact eg. zoom in and out of the plot.
seems that this issue is resolved, so i'll close it.
I'm simply trying Gadfly with the following commands:
But julia session crashes and keeps repeating the error message:
where
#####
stands for some integer. Even after quitting Julia, my terminal session keeps repeating the error message, which just stops after killing process `wineserver'. However, Gadfly works fine when running under Juno, in spite of being very slow. I'm running Julia Version 0.3.10 on x86_64-linux-gnu (Arch Linux).