[IPython-dev] [ANN] IPython 3.0.0rc1

Matthias Bussonnier bussonniermatthias at gmail.com
Tue Feb 17 17:56:34 EST 2015


Le 17 févr. 2015 à 14:45, Michael Waskom <mwaskom at stanford.edu> a écrit :

> Ooop one more thing I've noticed. ctrl-j/k no longer appears to move cells, although that shortcut is still referenced here: http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Notebook/Notebook%20Basics.ipynb (not in the help popup though, so maybe those have been removed, which would  make me sad).

Yes you are right. The shortcut are conflicting with FF windows, so we removed them. 
You can add them back in your custom.js though. 
-- 
M


> On Tue, Feb 17, 2015 at 1:53 PM, Thomas Kluyver <takowl at gmail.com> wrote:
> On 17 February 2015 at 13:43, Max Linke <max_linke at gmx.de> wrote:
> Isn't there a guarantee about which functions are available when
> custom.js is loaded?
> 
> 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.
>  
> I tried to read the old behavior of 'ctrl-j' and 'ctrl-k' with:
> 
>      IPython.Cell.options_default.cm_config.extraKeys['ctrl-j']
> 
> There's a code snippet to restore Ctrl-J/Ctrl-K here: https://github.com/ipython/ipython/pull/7732#issuecomment-74519970
> 
> 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.
> 
> > Is it documented somewhere what the recommended way is of enabling
> > extensions in the notebook? I can't find anything in the online docs and
> > most extensions I find seem to use another way to load it.
> 
> 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.
> 
> 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:
> 
> https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/config-extension
> 
> Thomas
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
> 
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150217/6d7e0662/attachment.html>


More information about the IPython-dev mailing list