title: Adding Python 2 kernel to Ipython
body: <p>I have Jupyter Notebook installed on Ubuntu. Python 2 and 3 run OK on the terminal but only Python 3 shows up on IPython. I am trying to get both kernels (2 and 3) up on IPython.</p>
  
  <p>I've tried to manually install ipykernel from <a href="https://github.com/ipython/ipykernel" rel="nofollow">https://github.com/ipython/ipykernel</a> which was successful but still can't get Python 2 kernel to show up. I also tried: </p>
  
  <pre><code>&gt; sudo ipython2 kernelspec install-self
  </code></pre>
  
  <p>And got the error: <code>ImportError: No module named shutil_get_terminal_size</code> </p>
  
  <p>Next, i tried:</p>
  
  <pre><code>python2 -m pip install --upgrade ipykernel 
  python2 -m ipykernel install 
  </code></pre>
  
  <p>The second line returned an error:</p>
  
  <pre><code>/usr/bin/python2: No module named shutil_get_terminal_size; 'ipykernel' is a package and cannot be directly executed
  </code></pre>
  
  <p>I guess the challenge is with the module named <em>shutil_get_terminal_size</em>. Please, kindly advise on how I can fix this. I read this post: <a href="https://github.com/ipython/ipython/issues/9416" rel="nofollow">https://github.com/ipython/ipython/issues/9416</a> but can't make much sense of it.</p>
  
  <p>Thank you!</p>