title: Changing Jupyter kernelspec to point to anaconda python
body: <p>I'm using Anaconda to manage both Python and Jupyter. That is:</p>
  <pre><code>&gt;&gt; which python
  &gt;&gt; /home/.../software/anaconda3/bin/python
  </code></pre>
  <p>and</p>
  <pre><code>&gt;&gt; which jupyter
  &gt;&gt; /home/.../software/anaconda3/bin/jupyter
  </code></pre>
  <p>But Jupyter's python kernel seems to be pointing to a system version of Python rather than my local version through Anaconda, since the <code>sys.path</code> is different in a Jupyter Python 3 notebook. Also, <code>jupyter kernelspec list</code> gives the following:</p>
  <pre><code>Available kernels:
    ir         /usr/local/share/jupyter/kernels/ir
    matlab     /usr/local/share/jupyter/kernels/matlab
    python3    /usr/local/share/jupyter/kernels/python3
  </code></pre>
  <p>This doesn't seem altogether surprising since the <a href="https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf" rel="noreferrer">docs</a> say in section 1.5.5:</p>
  <blockquote>
  <p>By default, kernel specs will go in a system-wide location (e.g. /usr/local/share/jupyter/kernels). If doing a --user install, the kernel specs will go in the JUPYTER_DATA_DIR location.</p>
  </blockquote>
  <p>For personal sanity and organization, I want the version of Python that I use in the command line to be the same that is accessed in Jupyter. As a result, I <em>think</em> that what I should do is change my jupyter kernelspec list for python3 so that it points to my desired Anaconda python version, i.e. <code>/home/.../software/anaconda3/bin/python</code>. My questions are: 1) is that indeed the best solution for my stated preferences, and 2) how do I actually change my jupyter kernelspec entry for python3? Not sure if this will come up, but I don't want to be using virtual environments--I want the default to be same version of Python across both the command line and Jupyter.</p>