Pluto.jl
Pluto.jl copied to clipboard
`publish_to_js` mostly breaks if used inside logs
I found this issue while trying to send PlutoPlotly plots into logs via the @info
macro.
It seems that putting object with publish_to_js
inside logs mostly breaks.
For scalars, publish_to_js
sometimes works without error and sometimes it gives a javascript error interrupting execution of the rest of the (JS) code.
When trying to publish more complex objects (like arrays or dicts), it seems to always fail.
Here is a video example (first two @info
cells did error at first run, a different set of them also errored upon restart of the notebook)
https://user-images.githubusercontent.com/12846528/166691674-927070b4-a6ea-4beb-b4fe-27a9625f3fb7.mp4
and here is the notebook gist:
https://gist.github.com/disberd/3fba685fbb9b6a8478fc1875ef64aa11