-
Notifications
You must be signed in to change notification settings - Fork 191
feat: Render vega
or vega-lite
code blocks as interactive graphs
#327
feat: Render vega
or vega-lite
code blocks as interactive graphs
#327
Conversation
vega
or vega-lite
code blocks as interactive graphs instead of plain textvega
or vega-lite
code blocks as interactive graphs
02cb966
to
9070bc0
Compare
9070bc0
to
5962736
Compare
thank you so much for this--very exciting! will take a look today or tomorrow & merge :-) |
So sorry it's been taking a few days; I have paper deadlines next week so things are slower than expected here. But I will get to it tomorrow! |
There’s no rush on my end, good luck with the papers. I look forward to
your feedback!
…On Wed, Mar 26, 2025 at 1:49 AM Shreya Shankar ***@***.***> wrote:
So sorry it's been taking a few days; I have paper deadlines next week so
things are slower than expected here. But I will get to it tomorrow!
—
Reply to this email directly, view it on GitHub
<#327 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACE2MM3IADLM3VMCG2NDO5L2WI5YLAVCNFSM6AAAAABZTWFQJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJTGMYTGMJUHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: shreyashankar]*shreyashankar* left a comment (ucbepic/docetl#327)
<#327 (comment)>
So sorry it's been taking a few days; I have paper deadlines next week so
things are slower than expected here. But I will get to it tomorrow!
—
Reply to this email directly, view it on GitHub
<#327 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACE2MM3IADLM3VMCG2NDO5L2WI5YLAVCNFSM6AAAAABZTWFQJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJTGMYTGMJUHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi @shreyashankar , there was a bug in that spec, I will fix the uploaded JSON Here is what we should have shown instead. Let me see about displaying an error message in that case! Regarding the second issue with There shouldn't be any additional installation steps necessary beyond the 3 packages I already added to the package.json (vega, vega-lite, and vega-embed). |
…not parse as valid JSON
thanks for the update! will take a look post April 1 :-) |
LGTM -- thank you! |
Motivation
website
package (DocWrangler GUI) able to render graphs from markdown inputs or outputs fields using the Vega/Vega-Lite grammar of graphicsChanges
MarkdownCell
code block (noticed the code is unused while figuring out how DocETL is wired)vega-embed
to render the graphs using latest vega/vega-lite packages. Ref docs for any questions about setup options. For better security since the Markdown fields might be untrusted if they are synthesized by an LLM, the graphs are drawn using the vega-interpreter mode rather than the speedy "eval" mode.Testing
2025-03-23_21-28-15.mp4
Notes
Open to any UX/UI feedback on how or if the graphs should be configured and/or the mode toggle should work. I just wanted to get something basic wired end-to-end.
Attached is an 8-row synthetic JSON dataset of vega-lite specifications, all using inlined data, which can be used for testing.
8 good vega-lite-examples.json
6 good, 2 bad vega-lite-examples.json -> use for testing error messages display when the input is invalid JSON.