Hi folks

My goal is to have notebooks embedded as an iframe in an open-edx MOOC

I am now working on customizing the look so as to optimize real estate
ideally I'd like the notebook area to look like the attachment

I have started to write a custom.js that uses jquery primitives like e.g.
    $("div#header-container").hide();
and have been able to get part of the job done
(I'd rather use custom.js than an extension because as far as I understood, 
it's easier to deploy in my context that is docker-based)

However, some other aspects seem to not work at all
For example trying to turn off the `Widgets` entry in the menubar is not 
working for me;
I have tried to have this
    $("#maintoolbar>div>div>div:nth-child(7)").hide();
attached to either app_initialized.NotebookApp or to 
notebook_loaded.Notebook,
but no matter what I try, I fancy something (extension?) runs in my back 
afterwards and reinstates it..


At this point I figure I am most likely not doing things the way they 
should be done...

So my questions are

* where should I start ?
  I have tried to find doc. resources but could only come up with pieces 
here and there,
  and found it hard to summarize; plus, people often discuss adding stuff, 
but I really could not
  find much on the topic of removing menu entries and similar

* more specifically, I guess I have 2 separate questions to answer
  * at what stage of the loading process should I hook ? should I use 
custom.js or an extension ?
    which event should trigger my code ?
  * is/are there any higher-level API that I should use instead of messing 
directly with the DOM

Sorry if I am missing the obvious here == thanks in advance for any help
Also feel free to redirect me if here is not the right place to ask 

-- Thierry

-- 
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/3a046b03-c621-4b09-8095-5c8ee7219b1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to