How to manage environments in Colab?

Newby of colab here.. how do environments, that in local installations are directory-based, are managed in colab notebooks? How do I “save” one environment between multiple runs of the notebook (so not to precompile everything all the times) and how do I have many scripts use the same environment ?