-
Notifications
You must be signed in to change notification settings - Fork 37
Move Makie Support to QMLMakie #207
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
base: main
Are you sure you want to change the base?
Conversation
Thanks, tried it out and it works beautifully. Some comments:
The last two points are of no infulence on this PR of course. |
Glad to hear :-)
Yeah, will do! I accidentally made the commit before i noticed the LSP had completely blown out the diff :-p
Agreed!
Oh yeah, nice catch. Thanks! |
606efd3
to
d048a0f
Compare
I ran JuliaFormatter on all the files in Also, if you have an opinion on style, we could add a JuliaFormatter config file to the project, so everyone is on the same page. As is, I just ran it with the default settings. |
Hi @steffenhaug. Was wondering if you're still pursuing this? Thinking about starting a project using QML.jl and running into issues with compat with GLMakie. Seems like this would fix the issue. |
Not really. I'm interested, but I hit some snags trying to get QMLMakie to support modern Makie versions, to the point where I could not justify the time investment on the clock, where I had a use case for it. Even though embedding GLMakie is not that complicated in principle (as demonstrated by the ImGui embedding, the code is quite short), I have not been able to get modern Makie versions to render anything from a callback in QML, and I'm also not exactly sure what the problem is. Makie is not designed to run in multithreaded contexts, and I suspect that it doesn't play nicely with Qt's runtime. I was hoping to get at least a proof of concept going before publishing anything, because publishing QMLMakie with a dependency on Makie |
Thank you for taking the time to respond - I understand |
How far did you get? In general, what is the furthest progress anyone has made in getting this to work: https://docs.makie.org/stable/explanations/backends/glmakie#embedding Eg, has anyone gotten an empty plot (window, screen, figure, idk the correct term here) to show up without error? |
This is probably not quite ready for a merge, but I'm starting a PR so we have a place to discuss where to go from here, and for visibility in case someone wants to play around with it or help out.
This PR moves the Makie Support to a new package, QMLMakie, as suggested in the roadmap
and discussed in #206.
This has a number of benefits:
compat
boundsGLMakie
which breaksPackageCompiler.jl
As it is, I basically just copied the code from
makie_support.jl
verbatim and made the necessary changes injlqml
to initialize Makie Support in a separateJlCxx
module, so that can be wrapped byQMLMakie.jl
. There is still a lot of work to do beforeQMLMakie
can be registered, but simple examples already work: