title: Cannot import Keras from TensorFlow contrib package in Datalab
body: <p>I'm trying to import Keras from the TensorFlow contrib package in a Datalab instance (I am using Tensorflow 1.1.0 version and Python 2.7)</p>
  
  <pre><code>from tensorflow.contrib.keras.python.keras.regularizers import l1,l2
  from tensorflow.contrib.keras.python.keras.models import Sequential, load_model
  from tensorflow.contrib.keras.python.keras.layers import Dense, Dropout, Activation
  from tensorflow.contrib.keras.python.keras.constraints import max_norm
  from tensorflow.contrib.keras.python.keras.optimizers import RMSprop, Adam
  from tensorflow.contrib.keras.python.keras.layers.normalization import BatchNormalization
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>ImportErrorTraceback (most recent call last)
  &lt;ipython-input-52-adf3061b6b33&gt; in &lt;module&gt;()
        1 #from tensorflow.contrib.keras import *
  ----&gt; 2 from tensorflow.contrib.keras.python.keras.regularizers import l1,l2
        3 from tensorflow.contrib.keras.python.keras.models import Sequential, load_model
        4 from tensorflow.contrib.keras.python.keras.layers import Dense, Dropout, Activation
        5 from tensorflow.contrib.keras.python.keras.constraints import max_norm
  
  /usr/local/lib/python2.7/dist-packages/tensorflow/contrib/keras/__init__.py in &lt;module&gt;()
       24 
       25 # pylint: disable=wildcard-import
  ---&gt; 26 from tensorflow.contrib.keras.api.keras import *
       27 
       28 try:
  
  /usr/local/lib/python2.7/dist-packages/tensorflow/contrib/keras/api/keras/__init__.py in &lt;module&gt;()
       23 from __future__ import print_function
       24 
  ---&gt; 25 from tensorflow.contrib.keras.api.keras import activations
       26 from tensorflow.contrib.keras.api.keras import applications
       27 from tensorflow.contrib.keras.api.keras import backend
  
  /usr/local/lib/python2.7/dist-packages/tensorflow/contrib/keras/api/keras/activations/__init__.py in &lt;module&gt;()
       20 
       21 # Activation functions.
  ---&gt; 22 from tensorflow.contrib.keras.python.keras.activations import elu
       23 from tensorflow.contrib.keras.python.keras.activations import hard_sigmoid
       24 from tensorflow.contrib.keras.python.keras.activations import linear
  
  /usr/local/lib/python2.7/dist-packages/tensorflow/contrib/keras/python/keras/__init__.py in &lt;module&gt;()
       19 from __future__ import print_function
       20 
  ---&gt; 21 from tensorflow.contrib.keras.python.keras import activations
       22 from tensorflow.contrib.keras.python.keras import applications
       23 from tensorflow.contrib.keras.python.keras import backend
  
  ImportError: cannot import name activations
  </code></pre>
  
  <p>I've tried to upgrade Tensorflow to 1.2.1 version but it still doesn't work.</p>
  
  <p>Any ideas why I get this error? Thanks!</p>