Skip to content

Instantly share code, notes, and snippets.

@izikeros
Last active July 17, 2024 22:37
Show Gist options
  • Save izikeros/24a7136d73e2363bfcca9899e2c830ba to your computer and use it in GitHub Desktop.
Save izikeros/24a7136d73e2363bfcca9899e2c830ba to your computer and use it in GitHub Desktop.
[dotmagic in notebook] Example of using dotmagic (graphviz diagrams) in Jupyter notebook.
# 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