Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

InteractNext doesn't work with Plotly when using Blink #19

Open
fzag opened this issue Jul 5, 2018 · 0 comments
Open

InteractNext doesn't work with Plotly when using Blink #19

fzag opened this issue Jul 5, 2018 · 0 comments

Comments

@fzag
Copy link

fzag commented Jul 5, 2018

Hello,

I was curious about this package und just tried to run the few examples from README.md.
It happens that the example using Plotly doesn't work when using Blink (the plot does not update when moving the slider or clicking the buttons).

The code is the following:

using InteractNext, PlotlyJS, CSSUtil, DataStructures, Blink

x = y = 0:0.1:30
p = plot(x, y);

freqs = OrderedDict(zip(["pi/4", "π/2", "3π/4", "π"], [π/4, π/2, 3π/4, π]))

mp = @manipulate for freq1 in freqs, freq2 in slider(0.01:0.1:4π; label="freq2")
    y = @. sin(freq1*x) * sin(freq2*x)
    restyle!(p, y=[y])
    nothing
end
ui = vbox(mp, p);

w = Window()
p.view.w = w # needed until PlotlyJS.jl is better integrated with WebIO.jl
body!(w, ui)

If that can help, I get a strange warning after assigning to 'mp':

WARNING: An observable named selected already exists in scope vue-component-1f37b6a6-f9e6-4ee5-933a-9f8f2a2f5332.
             Overwriting.

I tested it on both Mac OS and Debian, with Julia 6.2, and the Pkg versions are:

  • Blink 0.6.2
  • PlotlyJS 0.10.2
  • WebIO 0.2.4
  • CSSUtil 0.0.1
  • DataStructures 0.8.3

Furthermore Pkg.test("InteractNext") does not pass (can't be sure if the error is related)

Any idea?

Thank you ! :)

@fzag fzag changed the title InteractNext doesn't work with Plotly with Blink InteractNext doesn't work with Plotly when using Blink Jul 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant