twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.14k stars 67 forks source link

Display only the output of a codeblock and hide the code #237

Open Wellidontcare opened 1 year ago

Wellidontcare commented 1 year ago

Hello, thanks for the great plugin, I've been using it for a while now.

Would it possible to only show the output of a code cell, and hide the original code?

This would allow for easily embedding auto generated figures, displaying arbitrary information etc.

We have run-python already, maybe a display-python block (as well as for the other supported languages) could be added.

The block would show the code in live-edit/edit mode and would execute plus display just the output/magic commands when reading mode is toggled.

If something like this is already possible I'd love to hear it!