After messing up with my Python virtualenv my computer finally started going nuts. Jupyter notebook threw me the following error every time I start it:

1
zsh: /usr/local/bin/jupyter: bad interpreter: /usr/local/opt/python/bin/python3.7: no such file or directory

It turns out that the cause was that along with reinstallation of Python, the homebrew symlinks to Jupyter are now broken. A simple solution would be

1
2
3
4
5
rm '/usr/local/bin/jupyter'
brew install jupyter
brew link --overwrite jupyter
brew link --overwrite --dry-run jupyter
brew unlink jupyter && brew link jupyter

Then the notebook starts just fine.