Best practice for package extensions with Makie #2784
-
Hi, The package extensions are coming to Julia 1.9 and I have a plotting package that uses Makie that I'd like to turn into an extension for my main package so that if a user has Makie available then plotting functions become functional. Currently my plotting is made up of two parts:
The backends re-export Makie but can I just depend Makie? Or is GLMakie the right choice? Does anyone have any experience with Makie as a conditional dependency? Anything I should avoid? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Interactive elements are usually defined in a backend-independent way, so just depending on Makie should be fine. I just did something like this for Rasters.jl (the PR is still up) but it's a bit kludgey for now, since figure-level recipes aren't really a thing in Makie yet. |
Beta Was this translation helpful? Give feedback.
Interactive elements are usually defined in a backend-independent way, so just depending on Makie should be fine.
I just did something like this for Rasters.jl (the PR is still up) but it's a bit kludgey for now, since figure-level recipes aren't really a thing in Makie yet.