Pyjulia local package


I’ve been trying to use the pyjulia package to call some local julia package from python, but haven’t had any luck.

The following examples work (Interpolations is installed)

from julia import Base
from julia import Interpolations

but when I try to import a local package, it can’t find it:

from julia import LocalPackage

I have added that package;s parent directory to my startup.jl file, allowing me to call it from julia.

But how do I make sure that I can also call this package from Python?



Probably the easiest solution is to include your startup.jl file with

from julia import Main

before from julia import LocalPackage.

You can also look at how to use Pkg.jl and either ]dev your package or use Project.toml.