Export results of execute code plugin to use with chart plugin

Hi there,

have a query regarding the execute code plugin and how you can take any data returned by it and use that elsewhere in the note.

currently i have a python script that returns json data from REST api. It works in the execute-code codeblock and shows the data i need when i run the codeblock, but i’m at a loss as to how you could assign the result of the script running outside the codeblock, so i could for instance take the json that’s returned, convert it to a table and then render it with the chart plugin.

currently i’m doing this manually, but the ideal is to be able to take the result of the json which is returned by the python script, convert it to a table readable by the chart plugin and just have all of that refresh when the execute code script runs. is that possible?

cheers