In [2]:
import sys

In [2]:
sys.executable


Out[2]:
'C:\\Python27\\python.exe'

Switch Kernel from Python 2 to Python 3


In [ ]:
import sys

In [3]:
sys.executable


Out[3]:
'E:\\Miniconda3\\python.exe'