You can colorize Python messages in iTerm by adding triggers to your profile.
iTerm > Settings > Profiles > Triggers > Edit
Highlight Text - Traceback calls:
Traceback([\s\S]*)
| -- CodeKit -> Hooks: Run the following "Apple Script" | |
| tell application "iTerm" | |
| tell the current terminal | |
| activate current session | |
| tell the last session | |
| write text "python \"path to/pythonscript.py\"" | |
| end tell | |
| end tell | |
| end tell |
| ## Stage 1 | |
| ### Prerequisites | |
| * RoboFont | |
| * 2 or more opened fonts in RoboFont | |
| ### Task | |
| * Which of the opened fonts has the most glyphs? | |
| ### Abstracted |
| class ChangeMetrics: | |
| def __init__(self): | |
| for currentGlyph in CurrentFont(): | |
| left_space = currentGlyph.leftMargin | |
| right_space = currentGlyph.rightMargin | |
| # Define the value by which you want to change the metrics. | |
| change_units_by = 5 |
| from vanilla import * | |
| class checkboxWindow: | |
| def __init__(self): | |
| self.w = Window((400,400), 'SetOrganizer') | |
| self.w.checkBox1 = CheckBox((10, 10, -10, -10), 'Label', callback=self.checkBoxCallback, value=True) | |
| self.w.checkBox2 = CheckBox((10, 35, -10, -10), 'Label', callback=self.checkBoxCallback, value=True) |