Here is a minimal example:
using PlotlyLight
display(Plot(y=rand(10)))
display(Plot(y=rand(10)))
If I run this code inside a script, it will open two tabs in my browser with the same plot on both tabs. Somehow, it does the expected behavior when the script is run with VSCode and that the Display plots within VS Code
option is enabled.