[IPython-dev] [ANN] IPython 3.0.0rc1
Thomas Kluyver
takowl at gmail.com
Tue Feb 17 16:53:22 EST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150217/1b79f1a7/attachment.html>
More information about the IPython-dev
mailing list