Imported ScikitLearn PyObj becomes NULL in a module

Yeah that’s tricky, you need to place the import in the init function, see how I did it here
https://github.com/baggepinnen/HDBSCAN.jl/blob/master/src/HDBSCAN.jl

1 Like