-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interact + PyPlot does not work in Jupyter #263
Comments
one solution: using PyPlot, Interact
f1=figure(figsize=(6,3))
@manipulate for n in slider(100:100:10000; value = 100, label = "n")
withfig(f1,clear=true) do
plot(rand(n))
end
end |
There is another problem, so I keep this open. Let:
so even though I change the data of the line, the figure is not updated |
The using PyPlot, Interact
f1=figure(figsize=(6,3))
@manipulate for n in slider(100:100:10000; value = 100, label = "n")
withfig(f1,clear=true) do
plot(rand(n))
end
end works but flickers a lot, so I'm afraid it's not usable in practice. Does anybody know how to get this sort of PyPlot animation to work smoothly in the notebook? Say a |
Re: the @piever What do you mean when you say it flickers? It's fine for me™ (at least using the Using [email protected] doesn't display anything for me though. |
On InteractBase master you can use using PyPlot, Interact
f1=figure(figsize=(6,3))
wdg = slider(100:100:10000; value = 100, label = "n")
@manipulate for n in Interact.onchange(wdg)
withfig(f1,clear=true) do
plot(rand(n))
end
end Sometimes before being redisplayed the plot goes white and gives the overall impression is of a flicker (I'm on webio-retool). |
checking on MacOS with WebIO#master, I still regularly see a flicker on update as reported by @piever , using testing on just testing in regular notebook, with Julia Version 1.0.3
Commit 099e826241 (2018-12-18 01:34 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin14.5.0)
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8 |
MWE:
This does not update/create a new plot when moving the slider.
The text was updated successfully, but these errors were encountered: