-
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
Signal{Widget} display #47
Comments
Hi, is your work on Canvas going to be helpful with this? Miss you : ) |
I actually had a branch working for this a long time ago, but from memory I wasn't completely happy with the implementation. From what I recall the problem is that Jupyter Widgets display in a special area, so updating them is not the same as patching the html in the output/display area, and needs to be treated as a special case. When the Signal{Widget}'s value updates, the old widget needs to be removed and the new one added. Shashi's Canvas package I mentioned above became Escher, and I decided to wait until that was stable before looking at this again. I wondered if we could replace Jupyter's native widgets with Escher's widgets which as well as (I presume) easily fixing this bug, would also give us more flexibility with layouts, possibly making it easier to address #16 #48 #12 and #38 What are your thoughts about getting Escher to work in IJulia @shashi ? |
It would definitely be nice to have Escher work in IJulia. There are some problems however (e.g. you can't serve a directory of static files for IJulia to use). I'm not as happy as I want to be with Escher's stability and the underlying architecture. It definitely needs a re-look and possible simplification which might involve something like WebDisplay.jl acting as the bridge package making the same code work in IJulia / atom / escher server. |
Ok cheers, will have a look at WebDisplay - Atom (Julia-client/Ink) has really come along - the debugger integration is pretty good, and I just had a PR merged in atom-julia-client that implements a simple cell based mode, which I kinda got used to from Jupyter. The only major thing missing is widgets/interaction. Am definitely very interested in getting it going, but I'm not very familiar with the Escher or Atom/Ink code bases. If I get a chance to work on it (I really do have to do some of my actual work : )) I'll open some issues on WebDisplay.jl to ask you guys some questions. Btw this is working now - so closing 😄 |
👍 |
Hello! I'd like to be able to have widgets display based on values of signals.
Here is an attempt, should it work and allow me to choose the widget that gets displayed?
It starts out fine, initially showing the slider, when I choose checkbox I get this:
If the checkbox is the default in the togglebuttons and then I choose slider, this is the outcome:
Julia is 0.3.3, Interact is 0.1.6, Reactive is 0.1.10
Cheers.
The text was updated successfully, but these errors were encountered: