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.

Visual Studio Code

The terminal included with Microsoft Visual Studio Code is capable of making use of the syntax colouring provided by Rich. Since using colour improves the look of the output, we recommend using it by adding an optional argument to run as follows:

from friendly import run

run("error.py", formatter="dark")
Screen capture VS Code

The above screen capture has been edited to remove some output when the terminal starts it execution, but prior to running our program.

Using the notebook in VS Code

Visual Studio Code also supports Jupyter notebooks in exactly the same way as described previously:

from friendly.jupyter import *