You need to run this code everytime you want to start your project on a new machine, not every time you login to Clouderizer console.
Colab inherently has an idle timeout of ~2hrs and absolute timeout of 12 hrs. Beyond this, your instance terminates and you need to start your project again on a fresh instance.
Packages that are already installed, are automatically skipped by Clouderizer setup.