Warning

This project is being split into 3 separate projects:

  • friendly_traceback,

  • friendly, and

  • friendly_idle.

The documentation does not reflect this change.

If you are a end-user, just install friendly until further notice.

Google’s colab

One can also use Google Colab notebooks. However, the following should be noted:

  1. friendly must be installed using !pip install friendly.

  2. As for Jupyter notebooks, from friendly.jupyter import * must be used.

  3. The colour support is not as good as is the case for Jupyter notebooks.

Here are some sample outputs:

_images/colab-jupyter.png _images/colab-jupyter2.png _images/colab-jupyter3.png

There is also a dark theme available.

_images/colab-dark1.png

Unfortunately, the default gives rise to some unreadable content. Switching to using the 'dark' formatter does improve the situation.

_images/colab-dark2.png

Specifying a background colour helps to blend in the result.

_images/colab-dark3.png