# Julia crashed when using PyCall in multiple threads

**URL:** <https://discourse.julialang.org/t/julia-crashed-when-using-pycall-in-multiple-threads/111004>\
**Category:** General Usage\
**Tags:** pycall\
**Created:** [March 1, 2024, 9:20am UTC](https://discourse.julialang.org/t/julia-crashed-when-using-pycall-in-multiple-threads/111004 "2024-03-01T09:20:44Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [January 21, 2026, 4:12am UTC](https://discourse.julialang.org/t/julia-crashed-when-using-pycall-in-multiple-threads/111004/12 "2026-01-21T04:12:46Z")

</div>

You have three options:

- use PythonCall/ PythonPlot instead of PyCall/PyPlot (now threadsafe, not in the past)
- run Julia with `julia -t 1,0` (single threaded)
- do the plotting in a separate, single-threaded process

---

_[View the full topic](https://discourse.julialang.org/t/julia-crashed-when-using-pycall-in-multiple-threads/111004)._
