twibiral / obsidian-execute-code

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

"Run" feature not showing within code-block #294

Open aliKumailq opened 11 months ago

aliKumailq commented 11 months ago

I'm currently using Python within Obsidian's notebook mode on MacOS.

Here is my Python path:

Screenshot 2023-09-14 at 9 18 04 AM

Here is the block I am trying to run:

Screenshot 2023-09-14 at 9 20 07 AM
roey-angel commented 11 months ago

You need to switch first to reading mode. I don't know why this isn't documented

chenbihao commented 9 months ago

When there are multiple code blocks in the bidding block, the Run button only exists in the first one:

[!faq]- channel

 only exists in the first one
 not exists 
 not exists 
bitnom commented 9 months ago

You need to switch first to reading mode. I don't know why this isn't documented

For me, it wasn't showing up in preview mode either unless I changed my code-fence language spec (python) from its full name to its file extension name (py). The cause was another plugin, so just know that this plugin may not play nice with certain others having to do with code-fences.