Title: Tensorflow Modules in Jupiter Notebooks (using OSX)
Tags: python;tensorflow
Question: I am having trouble getting tensorflow to work using Jupiter notebooks.  I am a complete noob so please keep responses as simple as possible and apologies if this is trivial.

I run the following code in the notebook:

```import tensorflow as tf
from tensorflow.python.framework import ops
```

And get this error message:

```ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-15-509396287076&gt; in <module&gt;()
      1 
      2 import tensorflow as tf
----&gt; 3 from tensorflow.python.framework import ops
      4 from tf_utils import load_dataset, random_mini_batches, convert_to_one_hot, predict
      5 

ModuleNotFoundError: No module named 'tensorflow.python'
```

(I originally struggled to get the "import tensorflow as tf" line to work but have resolved that. The code runs fine without the second line...)  

Thanks for your help!

Comment: Oh great! Thank you - I wasn't aware of how that worked.  Sorry if it seemed like a daft question!

Comment: why do you want ops? You already imported tensorflow as tf. Now you can access all tensorflow related functions with tf.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2017:00:10/27/17', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<python><tensorflow>', 'Title': 'Tensorflow Modules in Jupiter Notebooks (using OSX)', 'ViewCount': 150, 'id': 46976140, 'user_AboutMe': '', 'user_AccountId': 1750059.0, 'user_DisplayName': 'Tobie', 'user_Reputation': 1.0, 'user_Views': 13.0, 'user_id': 1599356.0}}