Notebook This code runs with Python2.7, if you have not installed it yet or you do not want to mess up your versions just create a local environment using: conda create -n py27_HH python=2.7 anaconda To activate it write in a terminal source activate py27_HH To deactivate it: source deactivate