heynote icon indicating copy to clipboard operation
heynote copied to clipboard

Feature Request: Executable Blocks

Open theonewolf opened this issue 1 year ago • 3 comments

It would be awesome to be able to execute a block and get its output as the next block or inline.

So not just note buffers, but tiny PowerShell / Shell / JS / Python snippets one could execute quickly.

Not the full weight of a Jupyter Notebook. The key is the lightweightness of the block framework.

theonewolf avatar Dec 22 '23 14:12 theonewolf

Maybe just executables via shebang?

endigma avatar Dec 22 '23 16:12 endigma

I would love to define a function in a Python block and be able to call it from the Math block (or even from Python block to begin with). I have a need for several custom unit conversions and would like to define them as functions and run them later.

atma1c avatar Dec 22 '23 21:12 atma1c

I strongly vote against this; it seems antithetical to the simple core functionality and opens up so many cans of worms.

dmd avatar Dec 23 '23 22:12 dmd

I agree with @dmd, however I think this concept would make for a perfect plugin. If heynote were to expose an API for sending the contents of a block to a plugin, then the plugin could return the output for heynote to display.

hbd avatar Dec 31 '23 01:12 hbd

I have no plan to implement this feature. I can see that it could be useful, but it would make Heynote a very different program.

heyman avatar Dec 31 '23 09:12 heyman