Last active
July 17, 2024 22:37
-
-
Save izikeros/24a7136d73e2363bfcca9899e2c830ba to your computer and use it in GitHub Desktop.
[dotmagic in notebook] Example of using dotmagic (graphviz diagrams) in Jupyter notebook.
This file contains hidden or 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
# You might need to install extension first: | |
# !pip install git+https://github.com/sursingh/dotmagic.git | |
# Load the magic | |
%load_ext dotmagic | |
style='filled' | |
color='lightblue' | |
%%dot -p | |
digraph { | |
node [color="${color}" style="${style}"] | |
a -> {b c} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment