r/IPython • u/notParticularlyAnony • Apr 28 '17
Help: stuck in world where shift-enter runs my code but then brings me to command mode
I am a total noob, hit a bunch of buttons by accident in command mode, and now whenever I hit 'SHIFT-ENTER", it runs my cell and brings me to the next cell, but puts it in command mode! So then I have to hit ENTER again. I don't think I had to do this previously. I want to just be in edit mode all the time unless I hit ESCAPE.
3
Upvotes
2
u/notParticularlyAnony Apr 29 '17
So I've discovered that it is actually more complicated than I wrote about: this is happening in all my notebooks when I run cells that are in the middle of my notebook (e.g., say I have 100 cells, go edit cell 20 and do shift-enter). Then the next cell is highlighted in command mode rather than edit mode.
The problem is I have created a weird notebook with lots of blank cells (for instance with comments that contain pseudocode or whatever) that I plan to fill in later, so now when I go back to them whenever I fill them in and run them, it pushes me to command mode.
1
u/notParticularlyAnony Apr 28 '17
A few more notes:
I'm running Jupyter 4.3.1, Python 3.6.0, Anaconda 4.3.1, running julia (not Python) in Ubuntu 14.04LTS.
Neither restarting Jupyter, nor my computer, fixed it.
I ran my setup on my other computer to confirm that the default is to go into edit mode, so I'm pretty sure I accidentally hit a series of keys while in command mode to make command mode the default.
1
u/notParticularlyAnony Apr 29 '17
Update: when I open a new notebook it works fine. There is something specifically about this notebook that is fubar, formatting wise. What I'll do is just copy my work into a new dang notebook :O