-
DescriptionI have a python code block that when it runs prints out a graphviz string. Is there a way to get that output treated as a grpahviz code-block, which then gets rendered like any other code block? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
(I haven't tested this, but it should work.) It's an advanced hack, but yes. You want to use "output: asis" in the Python code cell metadata, and then produce output that corresponds exactly to the dot input you'd use here: https://quarto.org/docs/authoring/diagrams.html. This should work because our |
Beta Was this translation helpful? Give feedback.
(I haven't tested this, but it should work.)
It's an advanced hack, but yes. You want to use "output: asis" in the Python code cell metadata, and then produce output that corresponds exactly to the dot input you'd use here: https://quarto.org/docs/authoring/diagrams.html.
This should work because our
dot
handlers are run after the engines execute, and so we should be able to see yourdot
input.