Oh I forgot to mention that I was connecting remotely to another computer and that was giving me problems! Now everything has worked out, since it’s just a tutorial I will run it locally. But now I will also try to run it remotely, even though it seems trivial: https://stackoverflow.com/questions/41892039/how-to-enable-x11-forwarding-in-pycharm-ssh-session 2
Thanks a lot for your help!