Skip to content

Commit 6cef540

Browse files
committed
Fix doc for windows+graphviz; Fixes #11
1 parent 8426e4f commit 6cef540

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ $ pip list | grep -i torch
5858
torch 1.6.0
5959
```
6060

61+
### Graphviz for tsensor.astviz()
62+
63+
For displaying abstract syntax trees (ASTs) with `tsensor.astviz(...)`, then you need the `dot` executable from graphviz, not just the python library. On mac, do
64+
65+
```
66+
brew install graphviz
67+
```
68+
69+
On Windows, apparently you need
70+
71+
```
72+
conda install python-graphviz # Do this first; get's dot executable and py lib
73+
pip install tensor-sensor # Or one of the other installs
74+
```
75+
6176

6277
## Limitations
6378

0 commit comments

Comments
 (0)