How not to have to restart colab session after `pip install -e` clone github repo?

I’ve a repo on github which I want to use in colab sessions. I’ve packaged it by creating the usual directory structure and a, following instructions at:

Inside a colab session, the resulting package can be installed with:

git clone
pip install -e "package[dev]"

However, the colab session needs to be restarted in order to import the installed package.

This isn’t the case with fastai. How does fastai do it such that there’s no need to restart the colab session after pip install?