# Precompiling for PythonCall.jl juliacall

**URL:** <https://discourse.julialang.org/t/precompiling-for-pythoncall-jl-juliacall/111596>\
**Category:** Tooling\
**Tags:** precompilation, pythoncall\
**Created:** [March 14, 2024, 12:46am UTC](https://discourse.julialang.org/t/precompiling-for-pythoncall-jl-juliacall/111596 "2024-03-14T00:46:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![goretkin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goretkin/32/167_2.png) [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Post date:** [March 14, 2024, 12:46am UTC](https://discourse.julialang.org/t/precompiling-for-pythoncall-jl-juliacall/111596/1 "2024-03-14T00:46:53Z")

</div>

I have a Python application that uses `PythonCall.jl`’s `juliacall` to interface with Julia. I would like to use precompilation to improve the startup time of the application. `PrecompileTools.jl` lets you specify a Julia workload to trigger precompilation, but my workload is in Python, calling Julia.

How can I log all the compilations that occur as a result of the corresponding `juliacall` code, and force those to be precompiled?

Also asked here: [Facilitate precompilation for `juliacall` calls · JuliaPy/PythonCall.jl · Discussion #473 · GitHub](https://github.com/JuliaPy/PythonCall.jl/discussions/473)
