One can also use Google Colab notebooks. However, the following should be noted:
friendly must be installed using
!pip install friendly.
As for Jupyter notebooks,
from friendly.jupyter import *must be used.
The colour support is not as good as is the case for Jupyter notebooks.
Here are some sample outputs:
There is also a dark theme available.
Unfortunately, the default gives rise to some unreadable content.
Switching to using the
'dark' formatter does improve the situation.
Specifying a background colour helps to blend in the result.