-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove node-hyperlink and copypaste-fallback support, tweak path copy…
…ing. Removes two complex features in Treescope which were only rarely used: - Node hyperlinks: Previously, tree nodes could link to each other by path. However, this added complexity to every rendering and is unused in the v2 Penzai neural network design. - Copypaste fallbacks: To try to ensure Treescope renderings were valid Python syntax even for unrecognized types, custom `repr` implementations were originally wrapped in a "NotRoundtrippable" wrapper in roundtrip mode. However, this was only partially supported and cannot be guaranteed now that types can define their own Treescope handlers. Penzai models are still roundtrippable if they don't have array data. Also changes the "Copy path" buttons to be less verbose, by removing the "(lambda root: root...)" boilerplate. PiperOrigin-RevId: 651758769
- Loading branch information
1 parent
c746fd3
commit 4dc99dd
Showing
16 changed files
with
125 additions
and
461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.