pymc-devs / pymc-devs/pytensor
Explore textual representation with `rich` / `textualize` libraries
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 644
- Forks
- 208
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 16
Description
Description
We have a tree like output with debugprint, that could be made nicer with the rich library: https://github.com/Textualize/rich
Blogpost example of the tree functionality: https://www.willmcgugan.com/blog/tech/post/rich-tree/
We could also have an interactive version (not on jupyter notebooks unfortunately), with the related textualize library: https://www.textualize.io/
We could interactive expand/collapse nodes (show inner graphs from Composite / Scan) inline, compute test values, color code repeated nodes (right now you get a ... and and id for repeated expressions that are not always easy to find)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the existing debugprint entry point and review how Composite and Scan nodes are represented, then compare the tree and interaction capabilities described by the Rich and Textualize references. Define a focused scope for textual or interactive expansion, test-value display, and repeated-node coloring; done should mean the selected behavior is implemented and its output is validated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100