Why the plotCurve3D didn't show up while the code finished running?

Your code works for me, both in VS Code and in a standard terminal. Could you check if the issue persists when not using VS Code?

(By the way, if you’re not running this line by line, you should use display(plotCurve3D(...)).)