question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enter in the IPython console inserts new line instead of executing current line after kernel restart

See original GitHub issue

Recently I updated my anaconda package, which installed

ipython 4.0.0
ipython-qtconsole 4.0.1
spyder 2.3.6

After that, whenever I restart the ipython kernel in the qt-console (using ctrl + .), the console will not execute any command, e.g.:

Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [MSC v.1500 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
%guiref   -> A brief reference about the graphical user interface.

In [1]: 1
   ...: 

I cannot reproduce this behavior when running ipython-qtconsole outside spyder, i.e. it works as expected. My current workaround ist closing the console, thus killing the kernel, and load a fresh one.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:62 (18 by maintainers)

github_iconTop GitHub Comments

14reactions
Fishymancommented, Nov 26, 2015

if you hold down shift and press enter it works fine (although not what we want)

6reactions
ccordoba12commented, Apr 27, 2016

We are planning to release Spyder 3.0 (which will contain this fix, among many other things) next month 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enter in the IPython console inserts new line instead of executing ...
Enter in the IPython console inserts new line instead of executing current line after kernel restart.
Read more >
Any way to swap Enter and Shift-Enter input commands in Edit ...
3 Answers 3 · Go to Settings > Advanced Settings Editor. A Settings tab will open. · On the sidebar of the Settings...
Read more >
Messaging in IPython — IPython 3.2.1 documentation
When the user enters a line in a console style interface, the console must decide whether to immediately execute the current code, or...
Read more >
A Qt Console for IPython
If you want to force multiline input, hit Ctrl-Enter at the end of the first line instead of Enter , and it will...
Read more >
Jupyter Notebook Enhancements, Tips And Tricks - fastai
on the first line, and then pasting the above code on the following lines, and running the ... After the new setting is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found