I'm not sure about the answers for the classic notebook, but just wanted to point out that customizing keyboard shortcuts is possible in JupyterLab by default in the settings. The RISE extension (or other slideshow extension) hasn't been ported over yet, though.
Jason On Fri, Sep 15, 2017 at 3:25 AM Thierry Parmentelat < [email protected]> wrote: > hi jupyter > > I have a question regarding the RISE extension, but I feel like it's a > general pattern for all extensions > > in a nutshell, this extension offers one function for starting the > slideshow > > 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 > > I'd like to solve that cleanly, and have considered a few angles > > * accessing the extension module with define() > > I mean, instead of having custom.js do just this: > define(['base/js/namespace' ], function(Jupyter) { .... > > 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'm not sure about the mechanisms offered by a keyboard manager; > if this included retrieving a function in the manager from some sort of a > logical name (quickly reading the code suggests there is, but it's unclear > how to use this..), then the extension could register the shortcut (right > now this key binding is done using a low-level mechanism), and custom.js > could retrieve the function from there > > === > So my questions are: > > * is there some general framework that an extension should follow and that > would solve this ? > > * if not, is any of the 2 ideas above worth pursuing ? > > > thanks in advance > > -- > 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/29ff18ea-d38b-4868-8e31-ded609229159%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/29ff18ea-d38b-4868-8e31-ded609229159%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPDWZHyzRXhr8PavNCRjy9hWZu4G887b%3DN2awSQB-18YxH2utg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
