-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prevent temporary DOT file Hamilton visualizations rely on the graphviz library. It defines graphs using the DOT language, which defines one statement per line using a string. Previously, Hamilton used `graphviz.Digraph.render()` to produce visualizations. This has the side-effect of producing an intermediary DOT file on disk. This is most often of no use and clutters the directory. Now, we are switching to `graphviz.Digraph.pipe()` to write bytes directly to an open file. Tests were updated accordingly. The keyword argument `keep_dot` was added to viz functions in case users still want this DOT file to be produced. It allows to rerender the viz with a different style without re-executing the Hamilton code. It could be useful when iterating over custom styling. * added keep_dot to viz functions * added back view kwarg; fixed typing for 3.8 --------- Co-authored-by: zilto <tjean@DESKTOP-V6JDCS2>
- Loading branch information
Showing
3 changed files
with
63 additions
and
64 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
Oops, something went wrong.