JuliaBox.com: jupyter-js-widgets/extension "incompatible"(?) breaks Interact/Reactive

jupyter
juliabox

#1

While on my local Julia/IJulia (0.6…) I have no problem, JuliaBox.com (same kernel version) fails evaluating the code snippet below, returning a lot of errors (also reported below).

From the “jupyter” of JuliaBox.com (Edit —> nbextensions config), I see that jupyter-js-widgets/extension is indicated as possibly incompatible. Maybe that is the reason behind this problem… (as Interact uses explicitly the widgets), but I have no idea how to solve it.

I indicate this as “Off topic” as I believe it might be jupyter’s and not julia’s fault.

using PyPlot
using Interact
using Reactive

fig = figure("Test")

x = linspace(-40,40,500)

@manipulate for a=-1:0.1:1; withfig(fig) do
plot(x, sin.(x)./x + a)
ax = gca()
ax[:set_ylim]((-1.5,1.5))  
end
end```


----8<-------8<------------
Error message from JuliaBox.com upon evaluating the above code in a cell:

> MethodError: no method matching IJulia.CommManager.Comm(::String, ::String, ::Bool, ::IJulia.CommManager.#noop_callback, ::IJulia.CommManager.#noop_callback; data=Dict{Symbol,Any}(Pair{Symbol,Any}(:state, Dict{Symbol,Any}(Pair{Symbol,Any}(:_model_module_version, "1.0.0"),Pair{Symbol,Any}(:_view_name, "SelectionSliderView"),Pair{Symbol,Any}(:_model_name, "SelectionSliderModel"),Pair{Symbol,Any}(:_view_module, "@jupyter-widgets/controls"),Pair{Symbol,Any}(:_model_module, "@jupyter-widgets/controls"),Pair{Symbol,Any}(:_view_module_version, "1.0.0"))),Pair{Symbol,Any}(:tooltips, Any[]),Pair{Symbol,Any}(:orientation, "horizontal")), metadata=Dict(:version=>"2.0"))
> Closest candidates are:
>   IJulia.CommManager.Comm(::Any, ::Any, ::Any, ::Any, ::Any; data) at /opt/julia_packages/.julia/v0.6/IJulia/src/comm_manager.jl:36 got unsupported keyword argument "metadata"
>   IJulia.CommManager.Comm(::Any, ::Any, ::Any, ::Any) at /opt/julia_packages/.julia/v0.6/IJulia/src/comm_manager.jl:36 got unsupported keyword arguments "data", "metadata"
>   IJulia.CommManager.Comm(::Any, ::Any, ::Any) at /opt/julia_packages/.julia/v0.6/IJulia/src/comm_manager.jl:36 got unsupported keyword arguments "data", "metadata"
>   ...
> 
> Stacktrace:
>  [1] (::Core.#kw#Type)(::Array{Any,1}, ::Type{IJulia.CommManager.Comm}, ::String, ::String, ::Bool, ::Function, ::Function) at ./<missing>:0
>  [2] create_view(::Interact.Options{:SelectionSlider,Float64}) at /opt/julia_packages/.julia/v0.6/Interact/src/IJulia/setup.jl:277
>  [3] display_widget(::Interact.Options{:SelectionSlider,Float64}) at /opt/julia_packages/.julia/v0.6/Interact/src/IJulia/setup.jl:260
>  [4] metadata at /opt/julia_packages/.julia/v0.6/Interact/src/IJulia/setup.jl:183 [inlined]
>  [5] display(::IJulia.InlineDisplay, ::Interact.Options{:SelectionSlider,Float64}) at /opt/julia_packages/.julia/v0.6/IJulia/src/inline.jl:76
>  [6] display(::Interact.Options{:SelectionSlider,Float64}) at ./multimedia.jl:194