<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>Le 17 févr. 2015 à 14:45, Michael Waskom <<a href="mailto:mwaskom@stanford.edu">mwaskom@stanford.edu</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Ooop one more thing I've noticed. ctrl-j/k no longer appears to move cells, although that shortcut is still referenced here: <a href="http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Notebook/Notebook%20Basics.ipynb">http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Notebook/Notebook%20Basics.ipynb</a> (not in the help popup though, so maybe those have been removed, which would  make me sad).</div></blockquote><div><br></div><div>Yes you are right. The shortcut are conflicting with FF windows, so we removed them. </div><div>You can add them back in your custom.js though. </div><div>-- </div><div>M</div><div><br></div><br><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 17, 2015 at 1:53 PM, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On 17 February 2015 at 13:43, Max Linke <span dir="ltr"><<a href="mailto:max_linke@gmx.de" target="_blank">max_linke@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow:hidden">Isn't there a guarantee about which functions are available when<br>
custom.js is loaded?<br></div></blockquote><div><br></div></span><div>Currently, as far as I'm aware, no, there isn't. Possibly we should give one, though I think that's too late for 3.0 now.<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow:hidden">

I tried to read the old behavior of 'ctrl-j' and 'ctrl-k' with:<br>
<br>
     IPython.Cell.options_default.cm_config.extraKeys['ctrl-j']</div></blockquote></span></div><br></div><div class="gmail_extra">There's a code snippet to restore Ctrl-J/Ctrl-K here: <a href="https://github.com/ipython/ipython/pull/7732#issuecomment-74519970" target="_blank">https://github.com/ipython/ipython/pull/7732#issuecomment-74519970</a><br><br></div><div class="gmail_extra">The shortcuts set in cm_config are only for Codemirror, i.e. they act within a single cell. Notebook shortcuts, e.g. for moving cells around, are defined elsewhere.<span class=""><br><br>> Is it documented somewhere what the recommended way is of enabling<br>> extensions in the notebook? I can't find anything in the online docs and<br>> most extensions I find seem to use another way to load it.<br><br></span></div><div class="gmail_extra">Basically nothing about the JS API is documented yet, and this is kind of deliberate - most of it is still changing pretty fast, and we don't want to give a false impression of stability.<br><br></div><div class="gmail_extra">In IPython 3, there is a way of storing declarative frontend config, including a set of extensions to load, so you don't have to manually edit custom.js to enable them. There is an extension built on top of this to provide a GUI for enabling and disabling extensions:<br><br><a href="https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/config-extension" target="_blank">https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/config-extension</a><span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">Thomas<br></div></font></span></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>
_______________________________________________<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></blockquote></div><br></body></html>