Graph doesn't display in Julia Notebook (VSCode) using PyPlot

I’m having trouble in making the following code work

using PyPlot

plot(rand(10))

The output I get is:
1-element Vector{PyCall.PyObject}:
PyObject <matplotlib.lines.Line2D object at 0x000001B97E679030>

If I use the browser (IJulia package) the graph displays correctly. I’m not sure why, when working on VSCode notebook, I receive this text message instead. Is it possible to fix it? Or is it intentional?

Could you explain how you are using VS Code? I’m my sure what you mean by VS Code notebook.

A screenshot might help.

Do

using PyPlot
plot(rand(10))
display(gcf())

I’m sorry. I don’t know how to grab these specifications, here’s the print:

Thank you very much, it worked perfectly.
Could please explain the reason behind it?

No, not well. We should probably ask the VScode crowd.