-
-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit RISE keyboard shortcuts through default editor #367
Comments
We can only afford to support the latest version of the notebook, so can you please try to upgrade that, and try again ?
…Sent from my iPhone
On 14 Apr 2018, at 20:41, neighthan ***@***.***> wrote:
I just installed RISE using conda install -c damianavila82 rise. It's mostly but not all working. Two issues in particular:
Keyboard shortcuts
There don't seem to be any of the default ones (e.g. alt-r). I can access these commands using the command palette, though, and they seem to work fine.
I can also set my own keyboard shortcuts for them, which will work until I reload the notebook. On reloading (that is, when the shortcuts have to be loaded from ~/.jupyter/nbconfig/notebook.json then I get error messages like
Uncaught (in promise) Error: does not know how to deal with : RISE:toggle-fragment
at ShortcutManager.add_shortcut (keyboard.js:457)
at ShortcutManager.add_shortcuts (keyboard.js:475)
at keyboardmanager.js:80
Toolbar icon - from this YouTube video, it seems there should be an icon on the toolbar. I don't really care about this, as I much prefer keyboard shortcuts, but I don't have that either. This error may or may not be related (I checked that I don't get any errors on loading this notebook before installing RISE, but with RISE this error appears):
TypeError: Cannot read property 'help' of undefined
at toolbar.js:101
at MainToolBar.ToolBar.add_buttons_group (toolbar.js:115)
at Function.setup [as load_ipython_extension] (main.js?v=20180414142940:953)
at utils.js:39
at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
at Module.<anonymous> (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1140)
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1190
at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
RISE still seems fully functional, in the little that I've tested it, except that I have to access everything through the command palette. Any idea what's going on here?
In case it helps:
$ jupyter --version
4.3.0
$ jupyter notebook --version
5.0.0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ah, sorry, I ran The only problem that remains is with changing the keyboard shortcuts. I'm still getting
when I have
in my |
I saw on this page that they modify the bindings for the RISE actions in |
It should be possible to do it with the notebook JSON, I think... check these docs: http://rise.readthedocs.io/en/stable/customize.html#through-json (those will be the official docs soon, it is a recent merged PR). Maybe @parmentelat have some more comments about this? |
Hey there
it certainly suggests that the RISE extension has not yet been loaded at the time where the keyboard manager tries to bind these actions, and so the action names like RISE:toggle-slide have not yet been registered, and thus they do not yet make sense
just a word of warning though: things are certainly clearer, and hopefully work better with RISE 5.3, which is what the new documentation on readthedocs, that Damian just pointed to, describes
however, first off this 5.3 is not yet published as far as I know, so it’s not very safe to rely on that doc until then; second, I was not aware of that way of declaring keybindings in notebook.json, so I have never tried that, and so right now I cannot tell if 5.3 will do what you expect; it does provide an alternative and cleaner ways to do these binding though
so long story short, if using custom.js is a workable option for you right now, I suggest that you stick to this method for now, until we ship 5.3
— Thierry
|
Usually (?) one doesn't edit the keyboard bindings in |
It sure would be nice; however, now that I have a better understanding of what you're doing, I just tested under 5.3 and it does not work either. So for the record:
|
Ah, sorry for not making it clearer from the start how I was setting these. I focused on
but that approach won't be fruitful. |
thanks for the feedback; I'll try to get that to work, and if I can't, as you suggest, to reword the doc to make the limitation clearer |
Just wanted to reference this issue that I opened in the notebook repo jupyter/notebook#3549 It looks like @takluyver (thanks again) has come up with a workaround that could help us work around this issue I will try to find the time to give all this a try shortly |
As reported on the notebook issues board, the issue seems to have been fixed in that repo, and the change will be part of notebook-5.5, which is expected to ship shortly. see also #371 specifically about the |
I just installed RISE using
conda install -c damianavila82 rise
. It's mostly but not all working. Two issues in particular:alt-r
). I can access these commands using the command palette, though, and they seem to work fine.~/.jupyter/nbconfig/notebook.json
then I get error messages likeRISE still seems fully functional, in the little that I've tested it, except that I have to access everything through the command palette. Any idea what's going on here?
In case it helps:
EDIT - there do seem to be other issues as well. When I set the slide type for a cell as "Skip", it's still being shown (as part of the preceding "Slide" cell; except the very first cell in my notebook, which is a Skip with no preceding Slide and is correctly skipped).
The text was updated successfully, but these errors were encountered: