<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Le 28 mai 2014 à 14:32, Benjamin Ninassi a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello there, <br><br>It's a great work you're doing !<br><br>I intend  to use notebooks for making exercices in a mooc and i have 2 questions for notebooks customizations :<br>- is-it possible to "disable" the edition of some cells in browsers, maybe with some parameters in the json ? I'd like to get within a browser a notebook with some cells non-editable (instructions) et some cells editable (code for execution) but i can't find how to do this …<br></div></blockquote><div><br></div><div>It should be possible by directly setting the read-only mode to some cell in CodeMiror itself, but it will require a bit of javscript:</div><div><br></div><div><a href="http://codemirror.net/doc/manual.html#option_readOnly">http://codemirror.net/doc/manual.html#option_readOnly</a></div><div><br></div><br><blockquote type="cite"><div>- i've tried to use the custom.js file to hide the top panel, doing :<br><br>$([IPython.events]).on('notebook_loaded.Notebook', function(){<br> $('div#header').hide()<br> $('div#menubar').hide()<br> IPython.layout_manager.do_resize();<br>})<br><br>but the panels appears quickly before hiding - not nice :/<br>Is-there another way to do this where the panels that i want to hide don't show at all, or making a loading picture appears while the page is loading, and replace it when the page is completely loaded ? </div></blockquote><div><br></div><div>I suppose css with the same target and display:none in custom.css should works.</div><div><br></div><br><blockquote type="cite"><div>I can't find a list of the IPython.events ... or maybe by css ?<br></div></blockquote><div><br></div><div>No, there is no list. You can grep through the source for IPython.events out should give yo an idea of existing event, </div><div><br></div><div>The rest depend if when using IPython for a MOOC you will be providing the sever,in which case you can customize it a lot </div><div>or if you plan on users to install IPython in which case you probably want to avoid too aggressive customization. </div><div>-- </div><div>Matthias</div><br><blockquote type="cite"><div><br>Thanks !<br><br>Benjamin<br>_______________________________________________<br>IPython-dev mailing list<br><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/ipython-dev<br></div></blockquote></div><br></body></html>