Have an internal function to execute javascript code on the front-end #1359
Unanswered
disberd
asked this question in
Pluto development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was thinking that it would be quite cool for some niche cases to have some function (maybe inside PlutoRunner) that would allow to send custom javascript code to be evaluated in the front-end of a notebook.
I don't know if it's possible and even if it is it might create security pitfalls.
One could for example use this with
Revise.entr
to trigger re-evaluation of cells where external code is executed to have some Revise-like functionality also from included files rather than packages alone.I believe it could also open other possibilities on cases like programmatically add cells from julia code loaded in a notebook (like in the
__init__
function of packages).Many of these things would be better suited for a proper julia implementation in the Pluto code directly when stable and deemed useful enough, but having this javascript internal function would allow people to experiment with features while waiting for things to come to main Pluto and without having to touch any source code
What is the overall opinion on something like this?
Beta Was this translation helpful? Give feedback.
All reactions