title: Error importing TensorFlow GPU in Jupyter Notebook
body: <p>I am trying to import TensorFlow but end up with this error.</p>
  
  <pre><code>ImportError                               Traceback (most recent call last)
  /Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/__init__.py in &lt;module&gt;()
       60     sys.setdlopenflags(_default_dlopen_flags | ctypes.RTLD_GLOBAL)
  ---&gt; 61     from tensorflow.python import pywrap_tensorflow
       62     sys.setdlopenflags(_default_dlopen_flags)
  
  /Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py in &lt;module&gt;()
       27             return _mod
  ---&gt; 28     _pywrap_tensorflow = swig_import_helper()
       29     del swig_import_helper
  
  /Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py in swig_import_helper()
       23             try:
  ---&gt; 24                 _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
       25             finally:
  
  /Users/Aakaash/miniconda3/lib/python3.5/imp.py in load_module(name, file, filename, details)
      241         else:
  --&gt; 242             return load_dynamic(name, filename, file)
      243     elif type_ == PKG_DIRECTORY:
  
  /Users/Aakaash/miniconda3/lib/python3.5/imp.py in load_dynamic(name, path, file)
      341             name=name, loader=loader, origin=path)
  --&gt; 342         return _load(spec)
      343 
  
  ImportError: dlopen(/Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow.so, 10): Library not loaded: @rpath/libcudart.8.0.dylib
    Referenced from: /Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow.so
    Reason: image not found
  
  During handling of the above exception, another exception occurred:
  
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-7-a649b509054f&gt; in &lt;module&gt;()
  ----&gt; 1 import tensorflow
  
  /Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/__init__.py in &lt;module&gt;()
       22 
       23 # pylint: disable=wildcard-import
  ---&gt; 24 from tensorflow.python import *
       25 # pylint: enable=wildcard-import
       26 
  
  /Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/__init__.py in &lt;module&gt;()
       70 for some common reasons and solutions.  Include the entire stack trace
       71 above this error message when asking for help.""" % traceback.format_exc()
  ---&gt; 72   raise ImportError(msg)
       73 
       74 # Protocol buffers
  
  ImportError: Traceback (most recent call last):
    File "/Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/__init__.py", line 61, in &lt;module&gt;
      from tensorflow.python import pywrap_tensorflow
    File "/Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in &lt;module&gt;
      _pywrap_tensorflow = swig_import_helper()
    File "/Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
      _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
    File "/Users/Aakaash/miniconda3/lib/python3.5/imp.py", line 242, in load_module
      return load_dynamic(name, filename, file)
    File "/Users/Aakaash/miniconda3/lib/python3.5/imp.py", line 342, in load_dynamic
      return _load(spec)
  ImportError: dlopen(/Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow.so, 10): Library not loaded: @rpath/libcudart.8.0.dylib
    Referenced from: /Users/Aakaash/miniconda3/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow.so
    Reason: image not found
  
  
  Failed to load the native TensorFlow runtime.
  
  See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error
  
  for some common reasons and solutions.  Include the entire stack trace
  above this error message when asking for help.
  </code></pre>
  
  <p>I am able to import the CPU Version of the TensorFlow with no issue. I am also able to import TensorFlow in Python Console launched from Terminal. The path to python executable is same in both Console and Jupyter Notebook (<code>sys.executable</code> gave same output in Console and Jupyter Notebook). </p>
  
  <p>TensorFlow version - 1.0.0</p>
  
  <p>Python Version - 3.5.2</p>
  
  <p>Cuda Version - 8.0</p>