Ipython changes the translator?

How to change the Python interpreter used by Ipython? Ipython is a great environment for use in Python scripts, with its powerful autocomplete and other neat features. However, under Archlinux python, python 3 is used by default. How can Ipython be changed to use / usr / bin / python 2 as an interpreter for Ipython. I do not need a solution that would affect other programs, I want to use the python2 interpreter on demand: for example, the ability to make one Ipython session in python2 a second in python3. Is there any way to do this. The Ipython website says that it can work even with jython and another version of python, but it does not seem to indicate how to change the interpreter on which ipython runs. At least I could not find anything. Any ideas?

+4
source share
1 answer

Usually for a ship with ipython for the default Python ipython3 for Python 3, and so I assume ipython2 for Python2, when ipython is the default for Python3.

If you need something fast for python2, clone source, cd into it, then.

 $python2 ipython.py --Usual.options 
+2
source

Source: https://habr.com/ru/post/1484486/


All Articles