Is there a way to have interactive components like...
# datascience
h
Is there a way to have interactive components like a Slider in Jupyter for Kotlin? 😄
I know both Julia & Python has support for this through different widgets.
a
Yes, it is possible. One con support Python ipywidgets protocol, but it is also possible to do the same thing in kotlin from scratch, using our own micro-server. Plotlykt-server already supports unidirectional interactivity, but the protocol actually supports bacwards communication as well. I plan to implement that it VisionForge integration, but I have a lot on my plate now. If you a willing to collaborate, we can do that faster.
h
Yeah, I’m also pretty swamped. Might take a look into it if I ever get the time.. Feels like it’s a pretty important step to actually be a serious contester to Python/Julia notebooks. Interactivity is key 🚀
a
Well, I have not seen IPyWidgets widely used. As for code-to-display interactivity, it is already supported in Plotly.kt and VisionForge. I am not sure about Lets-Plot. The key problem is of course the loading of client-side JS.
I think I can do a tutorial on how to do your own jupyter compatible module.
h
I’ve had a few use-cases: • Custom text-input from user for NLP tasks. • Slider to render Images from different stages • Drag n’ Drop / File Upload for custom images I’d be very happy to see such a tutorial!
(these use-cases are especially for when I’m doing a presentation-mode notebook)
a
I think all those things are quite easy to do. We can do it in a tutorial
🥳 1