@ChrisK Indeed, it looks interesting (see also: researchgate.net/publication/…). I have dropped one of the authors, Ahmet Yantir, a note via email inquiring about the TimeScale package and I will keep you informed.
@gwr Thanks! It's pleasantly mind-bending to think about how to generalize time from discrete (difference equations) vs continuous (differential equations) to all combinations
@C.E. In general. I've been using it for python recently and keep getting annoyed that I can't make quality interactive interfaces to demo various bits of code/add discoverability to the data I generate and was wondering what other people do to circumnavigate this
@b3m2a1 I face the same problem and I have not been able to solve it within Jupyter. Streamlit/pyglet/Dear PyGui are alternatives that one can consider but then one has to make an application out of it, one can't stay in the Jupyter notebook anymore...
I would be interested if you have a better solution.
@C.E. Hmm okay. My solution has been to write stuff to integrate Bootstrap with the base ipywidgets and other things, which while functional has basically forced me to write a shadow DOM/front end library
I'm at the functional but not fun to use stage currently
I like Bootstrap, it is my go to framework whenever I make something in HTML. But I'm not good enough at JavaScript to feel like it will be efficient for me to write my own ipywidgets.
But based on what you say it sounds like there is a fundamental limitation to how good it can get anyway without great amounts of effort.
I actually don't write custom widgets. I just use Bootstrap for the CSS/basic design and use only the ipywidgets.HTML widget so I can inject in HTML which I construct on the python side using the xml.ElementTree interface
I looked into writing a custom widget but decided it wasn't worth it
But this now requires me to do the manipulation of parts of the DOM tree in python which works but needs some syntactic sugar
My long term goal is to use this to basically write a set of Mathematica-style composable FE elements but research is getting in the way of that
Are you able to for example print a slider and have the slider change some variable in the Jupyter notebook with this approach? And if so, is it possible to update other output cells that also depend on this variable? One problem I have with the built-in interact is that when I move the slider, I want to update not just things in that output cell...
@C.E. Yeah this kind of approach can manage that without too much work, although actually the plain ipywidgets approach can do that if only in an ugly way. All displayed instances of an ipywidgets.Output widget map to the same backend proxy
Since the ipywidgets.HTML widget also can be displayed multiple times but proxied back to the same object I can update one instance and have the changes mirrored on all of them
Which means you can create a little Dynamic object that is displayed in one cell but updated later from the slider's on_value_change event