Ipython Emacs integration

后端 未结 3 1854
离开以前
离开以前 2021-02-09 05:53

Has anyone managed to get Emacs 23, python-mode.el and ipython.el working together recently?

my .emacs looks like this:

(add-to-list \'load-path \"~/.ema         


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-02-09 06:33

    Here's another reason someone may be getting this error:

    iPython 0.12 exits with an error if given a -color arg.

    What fixed it for me was replacing

    (setq py-python-command-args '("-colors" "Linux"))
    

    in my .emacs with

    (setq py-python-command-args '("--colors=linux"))
    

    That is, make sure that the args passed to iPython were valid. If not, iPython exits with error and we fall back to the regular python interpreter.

提交回复
热议问题