JuliaPy / PyPlot.jl

Plotting for Julia based on matplotlib.pyplot
https://github.com/JuliaPy/PyPlot.jl
MIT License
475 stars 87 forks source link

Fix precompilation on latest master #565

Closed alhirzel closed 1 year ago

alhirzel commented 1 year ago

Use Revise.jl's "trick" that disables __init__() when precompiling.

See: timholy/Revise.jl#731

May not be the most idiomatic or best fix in the long term; perhaps the first call to a PyPlot function could initialize the backend instead? Related to: https://github.com/JuliaPy/PyPlot.jl/pull/480/files

Same as: https://github.com/stevengj/PythonPlot.jl/pull/26