I have an issue using keras backend. I set up tensorflow as the backend. I check the ./keras/keras.json, the activate.d and activate.sh to have tensorflow as backend. I also tried to force the envs variable to tensorflow.
The first time a run keras on the jupyter, it works fine. I can also import tensorflow without any bugs.
However when I use jupyter notebook now, the backend is theano.
I try to import keras on ipython and the backend is tensorflow.
I install keras, tensorflow and theano with conda.
python version : 3.6
keras : 2.0.6
tensorflow : 1.3.0
theano : 0.9
OS : win10
I try different ways to change the backend to tensorflow for jupyter notebook but it does not seem to work.
import sys
andprint(sys.executable)
. This will tell you if jupyter is running the correct environment. – Daniel Möllerfrom .theano_backend import *
tofrom .tensorflow_backend import *
. It seems to do the trick. – youpienvs\yourenvironment
for it to work properly without your hack. – Daniel Möller