Cannot make plots (sys:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.)

I tried to plot something in VSCode:

using Plots
plot(x->x)

However, no plot is displayed and I get a printed message:

sys:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

Running the same code in a normal REPL work. Running it from the VSCode REPL work. But running it from inline like this does not work:
image

Julai version 1.9.2, Plots version 1.9.25, Linux version 22.04

That is a fairly old version of Plots

Yeah, I created the repo quite a while ago, and if I can avoid it I’d rather avoid updating it (as I imagine I then have to update other packages, which then will require me to update code, and so on).