Sublime Forum

Is there a way to run python code that's in a markdown codeblock?

#1

If I have a markdown file with python code in a fenced code block, is there a way to execute that python code without leaving sublime? I’m hoping there is a way but am just not sure how to do it or where the code results would be returned.

0 Likes

#2

presumably https://packagecontrol.io/packages/BuildParts might work, though it seems you have to select the text first and choose the build system, but one could always improve that to automate it

0 Likes

#3

I’ve been meaning to try it myself for a while but haven’t got around to it: https://packagecontrol.io/packages/SendCode

I trust the developers (Terminus dev).

0 Likes

#4

Thank you. I’ll give these a look.

0 Likes