Closed schlichtanders closed 7 months ago
I found a workaround: using the following PlutoRunner internals
HTML(Main.PlutoRunner.format_output(bond2)[1])
works
Thanks for the report! In the meantime, try to use HypertextLiteral.jl instead of HTML
. A big advantage is that @htl
does not render-to-html-and-then-interpolate, but it stores the orignal object (a Bond{Select}
) and it gets rendered by Pluto on demand.
If you really need to use a pre-rendered HTML string, then you might get away with the embed_display
(already available in notebook scope) function.
Most fancy Pluto inputs won't work when prerendered to HTML, that's a big reason why HypertextLiteral.jl was developed.
The solution to this issue will probably be to detect this situation and throw an error š
when using PlutoUI, the select statement throws an error if interpolated beforehand via string interpolation. Interestingly the Slider works without problems. I really need string interpolation, hence it would be great if all PlutoUI works here too.
Here the error output in full
Anyone knowing what is going on? I am also looking for a workaround