Less intrusive solution (since my solution below does not need to modify any library files), this problem
python2.7 -m IPython notebook
therefore the general team
{{python-you-want-ipython-to-use}} -m IPython notebook
Why will this work?
Because if you see an ipython script (/ usr / local / bin / ipython), it is like a python script in itself and it has shebang (#! / Usr / bin / python3), so ipython is not a standalone binary but it gets life due to some python. Thus, in order for the ipython script itself to need some python to run it, so you run the ipython module directly using any python of your choice, instead of letting / usr / local / bin / ipython solve it for you, and fix the problem "of what python ipython uses.
Harish Kayarohanam Jun 15 '17 at 2:18 2017-06-15 02:18
source share