jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.64k stars 4.9k forks source link

split cell shortcut does not work on Japanese keyboard #552

Open minrk opened 9 years ago

minrk commented 9 years ago

@kangxin opened ipython/ipython#8854

I am using IPython-notebook 4.0.4 and IPython 4.0.0 on Mac. The short-cut for cell split Control+Shift or Control+Shift+subtract does not work for me. Could someone help me please?

minrk commented 9 years ago

@kangxin are you in edit mode when you hit this shortcut, or command mode (i.e. do you have a blinking cursor and green border)? This shortcut only works in edit more (cursor active)

kangxin commented 9 years ago

Thank you for responding. I am in edit mode (there is a blinking cursor and green border) when I try to split the cell. Since my keyboard is for Japanese Language (the subtract is under the equal sign on the same button), I am not sure if that causes the problem.

minrk commented 9 years ago

@kangxin that's almost certainly the problem, yes! You can register an alternate shortcut for your keyboard. I suspect it will be the = key. Our shortcuts use the keyDown instead of keyPress events, which can be sensitive to localization issues. I think it's really the wrong event to be looking for, but there are various problems with switching to keyPress that we haven't been able to figure out yet.

kangxin commented 9 years ago

Thank you for this quick explanation. I just hope this problem could be solved in the future. I could not find the reregistration of alternate shortcut for "=" in OSX, though. Thank you again for developing this amazing software.

Adrien-Luxey commented 7 years ago

I there, This isn't solved. It has happened to me on most of my latest Jupyter installations. The tooltip (Shift-Tab) does not work either (the code completion does, though; and I wonder if it is the tooltip that appears when I hit Tab (only) outside from completion-context (still edit-mode)).

My setup

System

Linux Mint 18, kernel 4.4.0-57-generic, x86_64 architecture

Python-related

Python 3.5.2 (default, Nov 17 2016, 17:05:23) IPython 5.1.0 jupyter-core 4.2.0 jupyter 1.0.0 jupyter-client 4.4.0 jupyter-console 5.0.0

Browser

Firefox 50.1.0 Lots of plugins too, but I tried disabling them: it does not change the behaviour.

vincentzlt commented 5 years ago

I got the same problem.

I tried ctrl-shift-_ and it worked.

I think this is a problem with the documentation.. They should not use -, just use _. very misleading..

uguryi commented 3 years ago

I'm having this exact same problem. The split cell shortcut (Ctrl + Shift + Minus) is not working for me (it used to work just fine before I formatted my computer and re-installed everything).

I saw some people talking about manually binding shortcuts in the ~/.jupyter/nbconfig/notebook.json file but the nbconfig directory doesn't exist for me. I saw a jupyter_notebook_config.json file inside ~/anaconda3/etc/jupyter but it seems to be empty...

Any ideas how I can get this to work? I use that shortcut a lot, so it's kind of annoying that I lost access to it now...

PS: When I say which jupyter in Terminal it says ~/anaconda3/bin/jupyter.