-
Notifications
You must be signed in to change notification settings - Fork 3
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
Easy Widgets for Pluto #8
Comments
I’m glad you like what I did; it was fun making it. Looks like JavisNB is a new project; I glanced through the source but I would love some documentation soon! Because I want to make more of these. Making the sliders and widgets was easy because I used PlutoUI.jl, which wraps the HTML inputs in Julia functions, and has a function for making groups of controls; the bound variable becomes a tuple. I really just copied an example from the documentation. An essential ingredient is HypertextLiteral.jl, which allows you to interpolate variables into an HTML object, and does context-aware escaping. The rest is just HTML and CSS. The only glitch was that Javis, as you know, can’t be installed on a headless server, and the branch that addresses that (JuliaAnimators/Javis.jl#298) is too old. So I just used You can get the notebook source at https://lee-phillips.org/plutoNotebooks/epicycles.jl |
Hey @leephillips ! Yes, JavisNB is a new member of the JuliaAnimators ecosystem mostly overseen by @gpucce ! Thanks for letting me know again about that headless server issue. I read through the source code - wow! |
Hi @TheCedarPrince and @leephillips. I think since PlutoUI is so well made and easy to use instead of adding widgets it is best to add examples at least for now, similar to the amazing notebook from @leephillips. Indeed, adding something done with PlutoSliderServer to the documentation could be the next thing to do! |
My first thought is that this makes sense. Note in particular that my notebook uses only a couple of the ready-made controls from PlutoUI; the layout details are done with HTML/CSS. But this just scratches the surface. Fons’ notebook at https://plutocon2021-demos.netlify.app/fonsp%20%E2%80%94%20javascript%20inside%20pluto shows how you can use JavaScript to do more. He has a video based on the notebook here: https://www.youtube.com/watch?v=SAC_RCjyRRs After looking at the notes for JavisNB I was wondering what is different with the |
Hi @leephillips the idea is to remove that functionality from I think the next one could be For the widgets I know very little html, CSS or javascript myself so it makes sense that I can't really figure out all the things that can be done. |
Is your feature request related to a problem? Please explain.
Not really a problem so much as a cool piece of inspiration from work done by @leephillips in his great blog on Ptolemy's Universe.
What I think is worth a discussion is about how to maybe define helpful auxiliary tools in JavisNB tailored specifically to notebooks such as Pluto and Jupyter.
Describe the solution you'd like
I really loved the layout Lee made here:
I would love it if we can provide specific sorts of toggles and buttons for JavisNB users to automatically add in their sliders.
@leephillips - in your experience, was there much difficulty with making these sliders and widgets in Pluto?
Describe alternatives you've considered
Letting a user define their own widgets and bindings can be useful, but it may be better to make some convenience notebook widgets available.
I do not know if that would be great - what do you think @gpucce ?
Additional context
N/A
The text was updated successfully, but these errors were encountered: