I just came across manim - it looks fantastic: https://www.manim.community/
It takes a python file, processes it with an external program, and creates an image or a movie of the mathematical objects you’ve defined.
I thought it would be great to make a plugin to embed it in code blocks, just like mermaid diagrams.
Then, I saw a pull request for the GraphViz plugin (GitHub - QAMichaelPeng/obsidian-graphviz: Graphviz plugin for obsidian md.) - similar idea, just runs a different command.
This makes me think that rather than cloning that plugin and adapting it, perhaps there’s a way to create something generic that deals with:
- looking for a code box of a certain type
- saving the contents as a file
- processing that file with an external program (with custom args)
- showing that in the display as an image, movie or other embed.
I could be wrong, but it feels like there are probably multiple tools/languages where this could be applied, and if all one had to do was put in a language name, executable path, arguments spec and something about what comes out, it would be pretty close to end user configurable