The answers to this question indicate different ways to freeze a cell in a Juypter notebook. How can I get the same functionality in a Colaboratory notebook?
The linked thread mentions the freeze extension that can be used with jupyter notebooks, but I am unable to figure out as to how I can use the same in a Colaboratory notebook.