-
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
Kernel dies when different widgets trigger off the same Observable? #269
Comments
Side commentI would actually prefer just changing the range of This used to be possible with Interact.jl on Julia 0.6.x... but I no longer seem to have access to If someone can tell me how to only update the range - instead spawning new sliders (at least that's what I believe is happening) - that would be greatly appreciated. |
Interact underwent a rather radical change. Instead of using ipywidgets (available only in the notebook) it now uses pure HTML5 widgets and uses WebIO to communicate data to them: as a result some of the API changed. In this case the crash is because txt_fmax = spinbox(value=fmax, label="max freq")
sld_fz1 = frequency_slider(fz1, fmax, label="zero #1")
sld_fp1 = frequency_slider(fp1, fmax, label="pole #1") There's updated documentation about the currently available widgets here. Concerning the side comment, I completely agree. It's not ideal to respawn the slider every time you change |
Excellent, thanks! I was not thinking of using the spinbox. I thought that passing an Observable{Float64} meant that textbox had to output a Float64 - because I assumed (incorrectly) that the Observable did not mutate... only what it pointed to could change. Also: Good to know about Issue 48. I will be looking out for future updates (but I can make it work for now). |
Background
I am providing an
Interact
-ive notebook to design filters with plots.I start by defining
Observables
directly bo make it easier to define variables, then I tie them to widgets for the user to control:Note that the maximum value of the frequency sliders are guarded to avoid invalid slider ranges.
Problem
Though I have not problem creating the two sliders (
sld_fz1
&sld_fz1
), My IJulia kernel dies if I also definetxt_fmax
(to controlfmax
directly).Am I doing something wrong here? How should I fix this?.... Or is it simply a bug in Interact.jl?
NOTE: I want the user to have control over the maximum frequency... so they have adequate control in the kHz... or the THz range.
The text was updated successfully, but these errors were encountered: