- install the nvidia drivers, cuda and cudnn which all come as ubuntu packages.
- use anaconda for python
- conda install theano
- pip install tensorflow as per the website
- pip install keras
And voilà, I got my keras models running on my shinny new GTX 980.