-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📈 Pluto object viewer as embeddable element #1126
Conversation
This will fix Roger-luo/Configurations.jl#34 |
@andreypopp I was having a quick look at your fork and this PR might be of interest to you. Note the "Persistance" in the test notebook on the bottom (still work in progress). This means that you can implement things like HBox inside user-code, it does not need to be part of Pluto's editor VDOM. I am planning on adding hbox, vbox, grid as a new submodule |
@fonsp Do you think this can help improve JuliaPluto/PlutoUI.jl#102? |
You can now use Pluto's object viewer inside custom HTML output, making things possible like: interactive table viewer on the left half of a cell, plot on the right. The embedded viewer is available inside notebooks as:
embed_display(x)
and inside packages as:
It's interactive, and you can click on "More"
Schermopname.2021-04-29.om.15.37.14.mov
You can also use it inside Markdown
TODO:
esm.sh
to get fields that are hidden in the htm bundle. This probably won't work in China, so either find a way to get it with jsdelivr or Artifacts to proxy&cache CDNs #241 . I think the easiest way is to create a new repo containing just https://github.com/fonsp/Pluto.jl/blob/pluto-display-custom-element/frontend/imports/Preact.js and then calldeno bundle
on that, and store the bundle in the same repobonds don't workshowing more items doesn't workPlutoRunner
This is achieved in combination with #1124
Demo and test notebook
https://github.com/fonsp/Pluto.jl/blob/main/sample/test_embed_display.jl