PythonCall.jl icon indicating copy to clipboard operation
PythonCall.jl copied to clipboard

Option to use preinstalled Julia environment/Project.toml

Open schlichtanders opened this issue 2 years ago • 4 comments

PythonCall use pyjuliapkg. This is will install a new environment, even in mybinder where the julia dependencies are already precompiled, however in another julia Project.

It would be really helpful if we could easily use PythonCall with different setups of Julia dependencies. I.e. it would be great to turn of pyjulipkg and just use pre-exiting Julia project.

schlichtanders avatar Apr 16 '23 12:04 schlichtanders

I'm confused by what you're saying - PythonCall is an ordinary Julia package, so it runs in whatever project you install it in, and the dependencies are handled by Pkg.

I think you're actually talking about JuliaCall? In which case, no there currently isn't a way to directly use a pre-existing Julia project. (CondaPkg does support this via the backends mechanism, but I haven't implemented a similar thing for JuliaPkg yet).

However, I think you can achieve an equivalent thing by setting the env vars PYTHON_JULIAPKG_PROJECT=/path/to/project and PYTHON_JULIAPKG_OFFLINE=yes.

cjdoris avatar Apr 24 '23 08:04 cjdoris

Yes, I was referring to JuliaCall, which only exists as a part of PythonCall so was my understanding. Indeed quite confusing

schlichtanders avatar Apr 24 '23 08:04 schlichtanders

This issue has been marked as stale because it has been open for 30 days with no activity. If the issue is still relevant then please leave a comment, or else it will be closed in 7 days.

github-actions[bot] avatar Aug 21 '23 01:08 github-actions[bot]

This issue has been closed because it has been stale for 7 days. You can re-open it if it is still relevant.

github-actions[bot] avatar Aug 28 '23 01:08 github-actions[bot]