PlutoUI.jl
PlutoUI.jl copied to clipboard
A collapsible Sidebar (similar to TableOfContents)
This adds a simple Sidebar
object, much like TableOfContents
(the sidebar stays to the left to avoid conflicting with the table of contents). Much of the code was based on TableOfContents
.
I was inspired by the sidebar from streamlit (an example here).
@fonsp Do you think this is a fit for PlutoUI.jl?
You see from the GIF above that there are still issues, such as 1. the sidebar not knowing the cell order (content is added to the sidebar as they are created) and 2. output on the sidebar doesn't get updated as it should. Feedback is welcome. 🙂🎈
Another minor thing is that push!
is implemented for Sidebar
, but no data is stored in the object (the work is done on the JavaScript side). This is counter-intuitive, and I am happy to change it if someone's got a better idea.
@fonsp Definitely, I've sent you an e-mail. 😃
Is this still a in play or has it be subsumed by other functionality? It kind of reminds me of similar sidebar functionality in MATLAB: https://www.mathworks.com/products/matlab/live-editor.html#
or something similar in Scribble (Racket's documentation DSL).
Any development of this functionality? It would be very useful in some circumstances (my use case: it would be an input panel, always displayed, for variables used by many cells in the notebook). Thanks
@dav2017 @sashmit I couldn't find the bandwidth to continue with this work. It is functional, though. Feel free to use it as a starting point if you'd like!
Thanks, @schneiderfelipe . Good news it is functional! I am not able to develop it, but I can surely use the code in my notebooks. Davide