Skip to content
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

A collapsible Sidebar (similar to TableOfContents) #102

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

schneiderfelipe
Copy link

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.

sidebar

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. 🙂🎈

@schneiderfelipe
Copy link
Author

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
Copy link
Member

fonsp commented May 18, 2021

Very cool! Let's call sometime to discuss? I have some ideas :)

[email protected]

@schneiderfelipe
Copy link
Author

@fonsp Definitely, I've sent you an e-mail. 😃

@sashmit
Copy link

sashmit commented Oct 24, 2021

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).

@dav2017
Copy link

dav2017 commented Oct 17, 2022

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

@schneiderfelipe
Copy link
Author

@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!

@dav2017
Copy link

dav2017 commented Oct 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants