I am creating a Jupyter Notebook extension <https://github.com/acrule/janus> 
for 
research purposes that creates a sidebar where users can "hide" cells with 
implementation details until they wish to see them. I am doing something 
similar to Min's old Scratchpad 
<https://github.com/minrk/nbextension-scratchpad> extension by creating a 
persistent Sidebar element for rendering these "hidden" cells on demand.

I was attempting to assign my Sidebar element to Jupyter.notebook.sidebar 
so I can reference it later, but it seems Jupyter.notebook is sealed 
<https://github.com/jupyter/notebook/blob/master/notebook/static/notebook/js/notebook.js#L252>
 so 
I cannot add new properties. Is there a way for me to get around this or is 
the sealing permanent? For now I am assigning the Sidebar element to 
Jupyter.notebook.session.sidebar but am not sure if code manipulating the 
notebook session may delete this reference. Alternatively I tried assigning 
it to Jupyter.sidebar, but think this will cause problems if a user has 
multiple notebooks open.

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/e7365c65-ddd5-4720-844e-275778a8ab31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to