Using a user defined system image in pyjulia

When we start Julia with the

$ ./Julia --help

option, it says we can use the flag -J and point to a system image file. Is this possible to use such an image when calling Julia from python using pyjulia?

You can call Julia’s C-API jl_init_with_image directly via ctypes (see AOT compiling using PackageCompiler) and then I think you can setup PyJulia with init_julia=False (not tested).

But I want to add more direct API for this: