Python shell in Emacs freezes when using matplotlib

前端 未结 2 1242
暖寄归人
暖寄归人 2020-12-18 06:32

I previously thought that was the issue with IPython, but today I tested again, here is what I did:

  1. Run emacs -Q in cmd window
  2. Open a .py
相关标签:
2条回答
  • 2020-12-18 06:54

    one solution is:

    (setq python-shell-interpreter "C:\\YourPython3Dist\\python.exe"
          python-shell-interpreter-args "-i C:\\YourPython3Dist\\Scripts\\ipython3-script.py console --pylab=qt")
    

    The Argument console in the call of ipython-script.py is the important one!

    In Python 3 with qt backend it works for me. I don't know how it works with py 2.7. (should be no problem if these arguments are supported for ipytho-script.py)

    0 讨论(0)
  • 2020-12-18 07:01

    I think it would take sometime until the problem is fixed. Until some Windows user actually debugs python.el.

    Until then, why not try Emacs IPython Notebook? It is a better IPython binding for Emacs. You don't need to use the notebook part. You can think it as a replacement for python shell in python.el. (disclaimer: I am the author)

    0 讨论(0)
提交回复
热议问题