How to start python or javascript code automatically and hide the code?

I have some code like this and use the execute code plugin:

How can I hide the code and let it automatically run by opening the note?

An other solution would be to only see a run button and some kind of collapsing the code as it is possible with headers.

Or the code runs elsewhere and gives only the output to a note.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.