jataware / beaker-kernel

Contextually-aware notebooks with built-in AI assistant
https://jataware.github.io/beaker-kernel/
MIT License
2 stars 2 forks source link

Adding previews #27

Closed mattprintz closed 7 months ago

mattprintz commented 7 months ago

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.

mattprintz commented 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.

mattprintz commented 7 months ago

Some example screenshots:

Rich native Vue json widget image

Default image rendering: image

Custom latex rendering image