juliacall is a Python library that enables seamless interoperability between Python and Julia, allowing Python code to call Julia functions, access Julia variables, and evaluate Julia code. It's part of the broader PythonCall.jl project which provides bidirectional integration. The library is actively maintained with frequent updates, often several minor releases per month.
pip install juliacallVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize a Julia session, evaluate Julia code, access Julia variables, and call both built-in and custom Julia functions from Python using juliacall.
Install Julia from https://julialang.org/downloads/. Ensure Julia's `bin` directory is on your system's PATH, or set the `JULIA_BIN` environment variable to the full path of the Julia executable (e.g., `/usr/local/julia-1.8.5/bin/julia`).
For global state or reusing an existing Julia session, import `Main` instead of `Julia`: `from juliacall import Main; jl = Main`. If you need isolated environments, instantiate `Julia()` once and reuse the object.
Review the `juliacall` documentation on type conversion to understand the mappings. For critical performance or complex data, consider explicit type hints or using data structures that convert predictably, like NumPy arrays (which map to Julia arrays).
No dependency data recorded yet.