I’d like to boost the loading speed of PyPlot.jl in IJulia-Jupyter model. I created sysimage of this package as below:
using PackageCompiler
create_sysimage(:PyPlot, sysimage_path="/path/to/pyplot.so")
and checked this sysimage in REPL mode:
$ Julia -J/path/to/pyplot.so
It works fine. So, I tried to load the sysimage in IJulia by adding a kernel:
using IJulia
installkernel("Julia with PyPlot", "-J/path/to/pyplot.so")
In Jupyter notebook mode, this kernel can be used, and using PyPlot
loaded very fast. However, all the figures drew by PyPlot doesn’t show on the notebook webpage. It only shows a text line of PyObject after running plot function.
My Julia version is 1.4.1 in Linux. IJulia 1.21.2, PackageCompiler 1.1.1, PyPlot 2.9.0 .