twibiral / obsidian-execute-code

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

[BUG] Python code does not run properly #377

Open gs0908 opened 1 week ago

gs0908 commented 1 week ago

**Describe the bug** There is a part of Python code that doesn't work properly in Obsidian, but it works fine in PyCharm. When a part of the code doesn't work properly, running the normal code blocks also keeps running without producing any results. I have tried uninstalling and reinstalling the plugin in hopes that it will reload the code, but it doesn't improve the situation.

Software Version OS:win11 plugin version:1.12.0 obsidian version: 1.6.7

Screenshots fig1 This is code that can be executed normally.

fig2 I don't know why this code block is reporting an error.

fig3 I don't know why this code block is also reporting errors.

fig4 When running the code block in the fig3, click Run other normal code block in the fig1, will always be in the running state.

gs0908 commented 1 week ago

image