title: How to switch to python 2.7 from python 3- jupyter notebook
body: <p>I am running a Jupyter notebook instance and it has both python 2 and python 3 kernels. However, when i use the python 2 kernel and execute below statements,</p>
  
  <pre><code>import sys
  sys.executable
  </code></pre>
  
  <p>I get python 3 path</p>
  
  <pre><code>'/usr/bin/python3.4'
  </code></pre>
  
  <p>How do i force it to use python 2.7</p>
  
  <p><a href="https://i.stack.imgur.com/o8SxM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o8SxM.png" alt="enter image description here"></a></p>