thebe icon indicating copy to clipboard operation
thebe copied to clipboard

how do you sync data from a javascript app with thebelab?

Open bionicles opened this issue 6 years ago • 1 comments

Hi,

I'd like to make the state of a javascript app available to thebelab cells for algo hackage. How can this be done?

Should we just stringify the JSON and add it to the code element and invoke the kernel?

Thanks in advance,

Bion

bionicles avatar May 29 '19 12:05 bionicles

btw this is doable, just stringify the state and make the text of the thebelab cell a variable and update it with the stringified state

bionicles avatar Jun 03 '19 20:06 bionicles