PlotlyJS not working in IJulia


I have difficulties getting the PlotlyJS for Plots.jl working from IJulia. When I do using Plots followed by plotlyjs() and plot(sin) in a IJulia notebook, I get no output. The JavaScript console in my browser shows a “ReferenceError: Can’t find variable: $”.

The problem seems to be specific to IJulia. The same sequence of operations works perfectly from a Julia REPL at the console.

Is this a know problem, and is there a simple way to fix it?

In case it matters, I’m running Julia 1.1.0 on macOS Mojave. I tried both Safari and Chrome; the behaviour is the same in both browsers.