https://github.com/gregorhuh/UU_egm722_project/blob/31fc24ce4e5e27d2d273c656ab5c3dc199c5681d/script.py#L37
This line causes a SyntaxError when running script.py "%matplotlib notebook" only works for a jupyter notebook, not a python script. You should remove these lines to be able to run the script using the python interpreter.