Skip to content

Commit ef77b2c

Browse files
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 fonts
1 parent aad169d commit ef77b2c

23 files changed

Lines changed: 9342 additions & 969 deletions

.github/workflows/python-publish.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.gitignore

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
1-
__pycache__
2-
*$py.class
1+
# Ignore all dotfiles and hidden directories
32
.*
4-
!.gitignore
3+
4+
# Byte-compiled / optimized / DLL files
5+
__pycache__/
6+
*.py[cod]
7+
*$py.class
8+
9+
# Distribution / packaging
510
build/
611
develop-eggs/
712
dist/
813
downloads/
914
eggs/
15+
lib/
16+
lib64/
17+
parts/
1018
sdist/
19+
var/
1120
wheels/
12-
pip-wheel-metadata/
1321
share/python-wheels/
1422
*.egg-info/
1523
*.egg
16-
*.eggs/
17-
*.lock
1824
MANIFEST
25+
26+
# Unit test / coverage reports
27+
htmlcov/
28+
coverage.xml
29+
*.cover
30+
*.py,cover
31+
cover/
32+
33+
# Package managers
34+
*.lock
35+
__pypackages__/

0 commit comments

Comments
 (0)