Closed mattprintz closed 7 months ago
To generate previews from your context once merged, you should just need to add a generate_preview
function in your context class. This runs separate from and after the post_execute
function. Whatever is returned by that function will be sent as the preview payload.
Some example screenshots:
Rich native Vue json widget
Default image rendering:
Custom latex rendering
Add rendering to beaker-ts Add composable way of rendering widgets Refactor beaker-vue to use beaker-ts rendering Add custom renderer for json payloads Add nice latex renderer Add display of preview in panel
Note: preview ux needs some love
WARNING:
Has large, hard-coded preview on default context for testing. Needs to be removed before merging.