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

Hi
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 setup.py, following instructions at: https://packaging.python.org/tutorials/packaging-projects/.

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

git clone https://github.com/user/package
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?

Thanks