You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
# cellusing PlutoUI
# cell
bond =@bind a Slider(1:10)
# cellHTML(repr("text/html", bond))
# cell
a
# cell
bond2 =@bind b Select(["potato 🍠", "carrot 🥕"]; default ="potato 🍠")
# cellHTML(repr("text/html", bond2))
# cell
b
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
The text was updated successfully, but these errors were encountered: