-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to open inline window for plotting #8
Comments
@GillesDuvert Would it mean that plplot wx driver was compiled against different wx version than GDL itself? |
Btw, I compiled all the dependencies including plplot and GDL itself from AUR. Other dependencies are latest from Arch repositories. |
I've done a few tests. Now, as jupyter GDL opens a window, and not a pixmap, then we're back to the old big problem of not correctly updated distributions, where the plplot driver insists on making its own window. |
When I try |
Mmmm, I do not have this behaviour. But also, I do not have the same configuration. The intent about forcing the wxWidgets use is that thewxWidgets device makes better plots than the X11, with antialiasing etc. But of course this was under condition the wxWidgets plplot driver and GDL would work together smoothly. Which is probably the case only with GDL 1.0rc and wxWidgets3. Could you try with this patch? |
@GillesDuvert It is plotted successfully after applying the patch, but the result isn't inline anyway. Workaround: GDL cell imgName = "path/to/img.png"
plot, your, graph
writePng, imgName, tvrd() Markdown cell <img src="path/to/img.png" /> |
Hello, |
Now, for the record, the kernel uses GDL with the default window type (SET_PLOT="X") which is somehow converted to a png 'screen copy' and inserted in the browser page below the code line that made it. |
Removing Also, I tried to use
After that GDL crashes (with emergency stop or segmentation fault). My Imagemagick is version 7.0.10.48-1 |
Sure, it's the latest kernel from this repository. I attempted to run the example on different distribution (Debian sid) where GDL is precompiled and it's precompiled against GraphicsMagick 1.3.35 instead of ImageMagick (Archlinux AUR), and it works for inline plots I will try to build GDL on Archlinux with GraphicsMagick and will tell the result |
So, I tried to recompile GDL with options // Also, on Archlinux, you need to include this Debian patch, otherwise GDL will crash It appears that for now GDL in combination with gdl_kernel is fully functional only on Debian configurations |
@vit1-irk , thanks for these returns. I'm confused because the above patch is already in GDL since May 1, 2019. |
Both Debian and Archlinux AUR versions use GDL 0.9.9, which was released earlier. Are you suggesting to try latest release candidate? |
Debian does have newer versions (thanks to @olebole !): |
I compiled GDL v1.0.0-rc.3 on Archlinux. The old Debian patch is included here, but nothing else changed, situation still like that:
To solve this issue, it's needed to reproduce the whole build process (also with all package versions described) from Debian workflow. Maybe connect here both AUR and Debian packagers. I'd like to see gdl_kernel functional in every distribution and to have clear description how to make it work well |
Any help in improving the package freshness very welcome, see: gnudatalanguage/gdl#761 |
The most I achieved with Archlinux and GDL 1.0 is this build config:
and this dependency config:
One note: when compiling with It turned out that default IDK what to do for now |
Remove |
After displaying this message, 2 windows opens, one from wxWidgets, another GDL native. But both are empty and don't show anything.
!inline=1
also doesn't help, displays the same messageThe text was updated successfully, but these errors were encountered: