Python shell in Emacs freezes when using matplotlib

前端 未结 2 1550
暖寄归人
暖寄归人 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)

提交回复
热议问题