Hi Thierry,

On 15 September 2017 at 08:24, Thierry Parmentelat <
[email protected]> wrote:

> by default this function is bound to Alt-R right in the RISE code, and
> right now there is no convenient way to let a user customize this binding
> in her custom.js, because the function name is local to the extension module
>

>From our perspective, I think the answer here is for RISE to define an
'action' which is registered with the notebook, and bind the keyboard
shortcut to that. Then the user can add their own shortcuts for the action.
I think that should even make it show up in the 'edit shortcuts' dialog
inside the notebook.


> it would be cool if I could do something like this
> define(['base/js/namespace', 'nbextensions/rise/main' ], function(Jupyter,
> RISE) {
>
> but that won't work as is; I'm not 100% clear on how these paths get
> searched, but on my mac at least the extensions get installed in a
> different location as the core code, it's probably why..
>

I think that should work. We do something quite similar to that to load
nbextensions. Not sure why it would go wrong.

Thomas

-- 
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/CAOvn4qjJcn0LRgoeXxzTsFszY3tLSF4hFgRdE%2BYKL-aQ6iP9BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to