49

What is the Jupyter shortcut key to toggle between insert and overwrite mode whilst editing?

I must keep hitting it by accident and then cannot turn off overwrite mode. I have looked at the list of shortcuts in Jupyter and online, but I could not find a match. I am working on Firefox on a Linux virtual machine running on a Mac.

5
  • 4
    Isn't it simply the Insert key? Commented Jun 3, 2016 at 7:00
  • 2
    Unfortunately no such beast on my Mac keyboards. I've tried some Mac key combinations to simulate an insert key - like fn+return, fn+alt+return, and cmd+shift+U - but no luck so far. Commented Jun 3, 2016 at 7:35
  • 2
    Jupyter does not have any shortcut that does that. It might be something in CodeMirror - the editor component - but it's most likely to be an OS shortcut (for... one of those OSes). If you've got a spare normal keyboard handy, you could try plugging it in and pressing the insert key. Commented Jun 3, 2016 at 15:24
  • 2
    Thanks all. Looks like for now I'll have to stick to swapping in a Windows keyboard or closing and restarting the Jupiter notebook when it happens. Commented Jun 5, 2016 at 8:58
  • 1
    I have exactly the same issue! I'm working on a Linux machine with a Mac keyboard too. Commented Apr 26, 2017 at 17:54

10 Answers 10

33

Finally tracked down the problem: it was a Linux one to do with enabling Numlock. As Numlock was not turned on, the 0-key on the number keypad was acting as a toggle for insert mode.

To turn on Numlock, I had to install numlockx and then change login window preferences to enable it, e.g. see https://unlockforus.com/numlock-linux-mint/.

Sign up to request clarification or add additional context in comments.

2 Comments

Same issue here; What's very confusing to me is that my keyboard also has an "ins" key, but this cannot be used to toggle insert mode if the number pad "ins" has been triggered. Also, the issue (so far) only affects Jupyter notebooks.
Very confusing for me too (Jupyter lab in Firefox on Linux). No idea what I do, but I frequently find myself in this annoying replace mode (who actually uses that anyways?). I think I can go back to normal insert mode by un-num-locking, then using the 0/insert key.
23

For me fn + insert solved the problem.

2 Comments

Your solution worked on my setup. This was very fun for me: I'm working on a Mac and port forwarding a linux instance of Jupyter Lab, accessed via the mac's browser. Thank you for the life saver.
Worked for me. I was typing on notebooks in kaggle
15

FWIW, on a Macbook running Linux, fn + return toggles insert mode.

On a Chromebook, Search + . or Search + Shift + Backspace toggles insert mode.

1 Comment

You're a lifesaver! I knew what was happening (overwrite mode was on), but I was going crazy trying to figure out what key I'd accidentally typed to turn it on, since I'm on a Mac laptop with no actual Insert key.
10

The Insert key on Linux should toggle it.

Comments

8

For Windows: Press fn + insert keys

Comments

2

Toggle off the num-lock on your keyboard and press the ZERO key on your Numpad. You will notice that it toggles the overwriting mode on and off.

Comments

0

For those, still facing the problem with jupyter notebook....The solution that worked for was to press Ins key above the delete key

I found out that pressing this Ins key Insert/overwrite the character.

Comments

0

Enter + Insert together in a Jupyter notebook

Comments

0

Simply pressing the 'insert' key worked for me, if you hit help in the toolbar up top, you can see and edit your keyboard shortcuts to see if your shortcut is any different (or change it!)

Comments

0

I don't have an insert key on my laptop so I just turned on the virtual keyboard from settings in windows and then pressed the insert key there. Solved it

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.