title: Unable to import a module from Python notebook in Jupyter
body: <p>I have an environment that I started using <code>Anaconda</code> and I successfully installed a module in it. I know it, because I can run <code>python</code> and then <code>import tensorflow</code>. This also works when through <code>ipython</code>. The problem is, that I cannot load the module from a notebook that I start using either <code>ipython notebook</code> or <code>jupyter</code> (even though I execute either from an active environment).</p>
  
  <p>I suspect it relates to the setting of <code>ipython</code> but I don't know how to debug and solve the issue. Any idea?</p>
  
  <p><em>Edit:</em>
  Here are the steps I took:</p>
  
  <ol>
  <li><code>conda create --name tensorflowproblem python=2.7</code> to create an environment</li>
  <li><code>source activate tensorflowproblem</code></li>
  <li><code>conda install --name tensorflowproblem jupyter</code> to install jupyter</li>
  <li><code>pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl</code> to install <code>tensorflow</code></li>
  </ol>
  
  <p>The locations of <code>pip</code> and <code>jupyter</code>:</p>
  
  <pre><code>$ which -a pip
  /Users/dror/anaconda/envs/tensorflowproblem/bin/pip
  $ which -a jupyter
  /Users/dror/anaconda/envs/tensorflowproblem/bin/jupyter
  </code></pre>
  
  <p>Note that the directory <code>~/anaconda/envs/tensorflowproblem/lib/python2.7/site-packages/tensorflow</code> exists.</p>
  
  <p>In addition neither <code>python -c "import tensorflow"</code> nor <code>ipython -c "import tensorflow"</code> yield any kind of error.</p>
  
  <p>As requested, also the out put of</p>
  
  <pre><code>$ conda list -n tensorflowproblem
  # packages in environment at /Users/dror/anaconda/envs/tensorflowproblem:
  #
  appnope                   0.1.0                    py27_0
  backports-abc             0.4                       &lt;pip&gt;
  backports.ssl-match-hostname 3.4.0.2                   &lt;pip&gt;
  backports_abc             0.4                      py27_0
  decorator                 4.0.4                    py27_0
  freetype                  2.5.5                         0
  ipykernel                 4.1.1                    py27_0
  ipython                   4.0.0                    py27_1
  ipython-genutils          0.1.0                     &lt;pip&gt;
  ipython_genutils          0.1.0                    py27_0
  ipywidgets                4.1.0                    py27_0
  jinja2                    2.8                      py27_0
  jsonschema                2.4.0                    py27_0
  jupyter                   1.0.0                    py27_0
  jupyter-client            4.1.1                     &lt;pip&gt;
  jupyter-console           4.0.3                     &lt;pip&gt;
  jupyter-core              4.0.6                     &lt;pip&gt;
  jupyter_client            4.1.1                    py27_0
  jupyter_console           4.0.3                    py27_0
  jupyter_core              4.0.6                    py27_0
  libpng                    1.6.17                        0
  markupsafe                0.23                     py27_0
  mistune                   0.7.1                    py27_0
  nbconvert                 4.0.0                    py27_0
  nbformat                  4.0.1                    py27_0
  notebook                  4.0.6                    py27_0
  numpy                     1.10.1                    &lt;pip&gt;
  openssl                   1.0.2d                        0
  path.py                   8.1.2                    py27_1
  pexpect                   3.3                      py27_0
  pickleshare               0.5                      py27_0
  pip                       7.1.2                    py27_0
  ptyprocess                0.5                      py27_0
  pygments                  2.0.2                    py27_0
  pyqt                      4.11.4                   py27_0
  python                    2.7.10                        2
  python.app                1.2                      py27_4
  pyzmq                     14.7.0                   py27_1
  qt                        4.8.7                         1
  qtconsole                 4.1.0                    py27_0
  readline                  6.2                           2
  setuptools                18.5                     py27_0
  simplegeneric             0.8.1                    py27_0
  singledispatch            3.4.0.3                  py27_0
  sip                       4.16.9                   py27_0
  six                       1.10.0                   py27_0
  sqlite                    3.8.4.1                       1
  ssl_match_hostname        3.4.0.2                  py27_0
  tensorflow                0.5.0                     &lt;pip&gt;
  terminado                 0.5                      py27_1
  tk                        8.5.18                        0
  tornado                   4.3                      py27_0
  traitlets                 4.0.0                    py27_0
  wheel                     0.26.0                   py27_1
  zeromq                    4.1.3                         0
  zlib                      1.2.8                         0
  </code></pre>
  
  <p>In addition, as requested, the output of <code>sys.path</code> is:</p>
  
  <pre><code>['',
   '/Users/user/anaconda/envs/py2/lib/python27.zip',
   '/Users/user/anaconda/envs/py2/lib/python2.7',
   '/Users/user/anaconda/envs/py2/lib/python2.7/plat-darwin',
   '/Users/user/anaconda/envs/py2/lib/python2.7/plat-mac',
   '/Users/user/anaconda/envs/py2/lib/python2.7/plat-mac/lib-scriptpackages',
   '/Users/user/anaconda/envs/py2/lib/python2.7/lib-tk',
   '/Users/user/anaconda/envs/py2/lib/python2.7/lib-old',
   '/Users/user/anaconda/envs/py2/lib/python2.7/lib-dynload',
   '/Users/user/anaconda/envs/py2/lib/python2.7/site-packages',
   '/Users/user/anaconda/envs/py2/lib/python2.7/site-packages/Sphinx-1.3.1-py2.7.egg',
   '/Users/user/anaconda/envs/py2/lib/python2.7/site-packages/aeosa',
   '/Users/user/anaconda/envs/py2/lib/python2.7/site-packages/setuptools-17.1.1-py2.7.egg',
   '/Users/user/anaconda/envs/py2/lib/python2.7/site-packages/IPython/extensions',
   '/Users/user/.ipython']
  </code></pre>