How to make plots appear inside a pane in vscode (instead of "GKS QtTerm")?

This will work. But that is not what I want to do. I want the plot to be generated from within a function that is within a module.