# PythonPlot taking a lot of time to precompile

**URL:** https://discourse.julialang.org/t/pythonplot-taking-a-lot-of-time-to-precompile/94166
**Category:** New to Julia
**Tags:** precompilation, pythonplot
**Created:** [February 6, 2023, 9:14pm UTC](https://discourse.julialang.org/t/pythonplot-taking-a-lot-of-time-to-precompile/94166 "2023-02-06T21:14:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![madeline](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/madeline/32/46618_2.png) [@madeline](https://discourse.julialang.org/u/madeline)
#### Post date: [February 6, 2023, 9:14pm UTC](https://discourse.julialang.org/t/pythonplot-taking-a-lot-of-time-to-precompile/94166/1 "2023-02-06T21:14:28Z")

</div>

I’m trying to animate a simulation. I’m most familiar with matplotlib in python, so I’m trying to use the PythonPlot backend for Plots.jl, however the following code is taking a lot of time (\>10 mins) to run.

```julia
using Plots
pythonplot()

```

This gives me the following message:

```julia
[Info: Precompiling PythonPlot [274fc56d-3b97-40fa-a1cd-1b4a50311bf9]

```

And it stays like that for a while. I have added PythonPlot using Pkg.add, along with Plots. ¿Can anybody help?¿Is this a known issue?

---

<div class="post-metadata">

### Author: ![M-PERSIC](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/m-persic/32/51968_2.png) [@M-PERSIC](https://discourse.julialang.org/u/M-PERSIC)
#### Post date: [February 6, 2023, 9:41pm UTC](https://discourse.julialang.org/t/pythonplot-taking-a-lot-of-time-to-precompile/94166/2 "2023-02-06T21:41:25Z")

</div>

How long does it take? Does it still reach to completion?

Also, what version of Julia are you using?

---

<div class="post-metadata">

### Author: ![BVPs](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bvps/32/2190_2.png) [@BVPs](https://discourse.julialang.org/u/BVPs)
#### Post date: [March 13, 2023, 12:01am UTC](https://discourse.julialang.org/t/pythonplot-taking-a-lot-of-time-to-precompile/94166/3 "2023-03-13T00:01:35Z")

</div>

Actually, I also have the same problem only on my Windows machine. On my Mac’s, I could precompile the `PythonPlot` package without any problem. I use Julia v1.8.5, PythonPlot v1.0.2, Plots v1.38.7.  
Any help would be appreciated!

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [March 23, 2023, 10:58pm UTC](https://discourse.julialang.org/t/pythonplot-taking-a-lot-of-time-to-precompile/94166/4 "2023-03-23T22:58:50Z")

</div>

Same problem here on Win11 Julia 1.8.5. During precompilation VS Code displays `Indexing PythonPlot...(0%)` for a seemingly unlimited time, at step:

```julia
Precompiling project...
  Progress [=======>] 4/6

```

I had to revert to `PyPlot`

---

<div class="post-metadata">

### Author: ![BVPs](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bvps/32/2190_2.png) [@BVPs](https://discourse.julialang.org/u/BVPs)
#### Post date: [March 23, 2023, 11:24pm UTC](https://discourse.julialang.org/t/pythonplot-taking-a-lot-of-time-to-precompile/94166/5 "2023-03-23T23:24:45Z")

</div>

After remvoing `PythonPlot.jl`, wiping out `~/.julia/environments/v1.8/.CondaPkg` and `CondaPkg.toml` there, and adding `PythonPlot.jl` again, then it started working for me.

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [March 23, 2023, 11:52pm UTC](https://discourse.julialang.org/t/pythonplot-taking-a-lot-of-time-to-precompile/94166/6 "2023-03-23T23:52:15Z")

</div>

Thanks, I now deleted that folder but the precompilation is still stuck at the same point.
