How to open IPython interpreter in emacs?

前端 未结 6 1790
名媛妹妹
名媛妹妹 2020-12-04 20:17

In order to use IPython during Python development in Emacs, I have been opening up a terminal, and typing ipython. This doesn\'t seem like the right way to do i

6条回答
  •  执念已碎
    2020-12-04 20:30

    I don't know what Prelude is, but if you can install the latest Emacs (i.e, Emacs with Fabian's python-mode included), then you can use the following to let Python mode know your preferred choice of interpreter. Then you just need to call M-x run-python:

    --

    (when (executable-find "ipython")
      (setq python-shell-interpreter "ipython"))
    

    --

提交回复
热议问题