Commit ef77b2c
authored
Version 2: major rewrite, cursor positions (#26)
* Reimplement everything based on Python 3.11+ exception handling. Adds exact columns of the error and a caret position if available, removes our own internal data structures but printing HTML tracebacks and usage in Notebooks remains the same.
* Refactor html output to include the whole error line in a span, but only mark the actual error (yellow background), with additional em (red font) for caret position.
* Modernize project toolchain, pyproject/uv/ruff. Script and test running via nox.
* AI-generated tests for 100% coverage, including numpy and torch tensors.
* Implement tracerite[nb] extra that installs jupyter notebook packages, for convenience.
* Move tooltips to a separate span, fixing emoji symbol positioning.
* style: Remove code element default background (that vscode was adding).
* style: Tooltips are no longer popups but always shown.
* style: a lot more style, Monaspace fonts1 parent aad169d commit ef77b2c
23 files changed
Lines changed: 9342 additions & 969 deletions
File tree
- .github/workflows
- tests
- tracerite
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
10 | 18 | | |
| 19 | + | |
11 | 20 | | |
12 | | - | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
16 | | - | |
17 | | - | |
18 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments