PlotlyJS backend not working in Jupyter Notebook on VS Code

The following code:

using Plots
plotlyjs()
plot(rand(10,4),rand(10,4),rand(10,4))

Runs perfectly fine as a .jl in my vscode environment, but the same code just runs forever when inside of a Jupyter notebook in VS Code. Any ideas on how how to fix this?

IJulia v1.24.0
Plotly v0.4.1
PlotlyJS v0.18.10
Plots v1.38.7

Are you using the same Julia environment in both cases?

Can you run other commands in the Jupyter notebook?

Yes, it’s the same environment. I have been using Jupyter for everything, and have yet to come across anything that doesn’t work in Jupyter but works in REPL.