Commit 3cca688
authored
feat: Gruvbox Dark theme with same colours in exception tracebacks (ipython#15004)
I hope this is allowed; the documentation does say that users are
encouraged to contribute themes!
#### Gruvbox Dark Theme
This theme was available in older versions of IPython, but the exception
tracebacks used colours from another theme. This change adds the theme
and also uses the colours from it in tracebacks.

#### Other Information
* The colour used to highlight the source of the exception can make the
text unreadable, but a solution for the same has been proposed in
ipython#14863 (comment).
* Although all lines in `docs/source/config/details.rst` are 80
characters or shorter in length, I didn't break the line I changed
because that would affect the Git blame for the lines below.
* The names of the variables used to store colour codes for the existing
themes in `IPython/utils/PyColorize.py` are actually names of the
colours; I used the names of the tokens instead just as a matter of
semantics. If you'd like that the names of the colours be used, I can
make the change.3 files changed
Lines changed: 40 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
334 | 368 | | |
335 | 369 | | |
336 | 370 | | |
| |||
340 | 374 | | |
341 | 375 | | |
342 | 376 | | |
| 377 | + | |
343 | 378 | | |
344 | 379 | | |
345 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments