I'm trying to use inferior python shell to run ipython commands interactively. I am able to connect but it doesn't print the results of my statements except when I use print statements

In [1]: a = 10

In [5]: a

In [6]: a.real

In [12]: print "hello"

I am using the latest version of spacemacs with the Python layer and the following user configuration settings:

(setq python-shell-completion-native-enable nil)
(setq python-shell-interpreter "ipython")
(setq python-shell-interpreter "python.exe"
    "-i c:\\Users\\me\\AppData\\Local\\Continuum\\Anaconda2\\Scripts\\ipython-script.py")

Thanks in advance!


Actually, the problem seems to be on the iPython side. Upgrading to 5.1.0 fixed the problem, both with Anaconda iPython or MSYS2 iPython.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.