How to start an ipython shell(not notebook) within a conda or virtualenv

后端 未结 2 434
故里飘歌
故里飘歌 2020-12-06 15:16

Is it possible to start an ipython shell(in terminal) within a conda or virtualenv ? The ipython shell should belongs to the respective environment.

I know a way to

2条回答
  •  遥遥无期
    2020-12-06 16:03

    I know a way to start jupyter notebook within the env, by creating a kernelspecs for the virtual env and then choosing the env kernel within the jupyter notebook.

    You just need to do the same thing, but using console instead of notebook.

    For example:

    ipython console --kernel python2
    

提交回复
热议问题