Can't launch Joulescope UI on macOS

I have a report for a workaround on macOS 12 with Joulescope UI 0.10.13. The solution is to use python 3.8 with homebrew. First, install everything:

brew install python@3.8
pip3.8 install -U joulescope_ui

Then, to run the Joulescope UI:

python3.8 -m joulescope_ui ui