Asciinema on Google Colab?

Do you have an example to install asciinema on Google Colab?
My usecase is to run nethack for reinforcement learning, it creates an ttyrec2 file which I would like to upload to asciinema to view.