Trace variables and the operations on them using graphviz visualizations.
- wrap the variables in Float() and perform operations
- call draw() function on the variables just like print()
NOTE: PRs are currently not accepted for source code. If there are issues/problems, please create an issue.
Install using pip
pip install tracex
Integrating TraceX is a piece of cake. All you need is some variables.
from tracex import Float, draw
a = Float(2)
b = Float(-3)
c = a * b
d = c + Float(10)
e = Float(-2)
f = d * e
print(f)
draw(f)
NOTE: PRs are currently accepted for examples. If there are examples you've created, please create a PR.