IJulia and Pyplot backend problem with old Python version

Freya_the_Goddess
Wed, 03 Aug 2022 07:29:47 +0000
General Usage

Hi all,

I have upgraded my Python to 3.10 just to be able to use Pyplot backend (do not know if it is worth the trouble, perhaps other backend is better)

I want to plot this:

using Plots; pyplot();

xc = [0,0,1,1]
yc = [0,1,1,0]
zc = [1,1,2,2];

plot(xc,yc,zc,st=:surface,camera=(-30,30))

Then error occurs:
Warning: You are using Matplotlib 3.3.4, which is no longer
│ officialy supported by the Plots community. To ensure smooth Plots.jl
│ integration update your Matplotlib library to a version >= 3.4.0
**│ **
│ If you have used Conda.jl to install PyPlot (default installation),
│ upgrade your matplotlib via Conda.jl and rebuild the PyPlot.
**│ **
│ If you are not sure, here are the default instructions:
**│ **
│ In Julia REPL:
│ ** **│ import Pkg;** **│ Pkg.add("Conda")** **│ import Conda** **│ Conda.update()** **│ Pkg.build("PyPlot")** **│
**│ **
└ @ Plots /home/browni/.julia/packages/Plots/SkUg1/src/backends/pyplot.jl:29

I want to change the kernel of Jupyter Notebook to the newest Python 3.10 so I can use pyplot() backend.

This also makes the notebook for Python kernel that used to work with PyplotJS for Python is not working now as well.

Just how to fix this Python kernel ? I have the newest matplotlib now when I check at terminal.

Different error when I run the code again:

13 posts - 3 participants