I already know How to import Julia packages into Python.
However, now I have created my own simple Julia package with the following command:
using Pkg;Pkg.generate("MyPack");Pkg.activate("MyPack");Pkg.add("StatsBase")
where the file MyPack/src/MyPack.jl
has the following contents:
module MyPack
using StatsBase
function f1(x, y)
return 3x + y
end
g(x) = StatsBase.std(x)
export f1
end
Now I would like to load this Julia package in Python via juliacall
and call f1
and g
functions.
I have already run pip3 install juliacall
from command line. How do I call the above functions from Python?