Skip to content

Is it possible to get selections from python? #390

Answered by jonmmease
jhyoo1982 asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, these are related. The bytes stored in _request_msg are serialized to the browser as an ipywidget traitlet. The browser deserializes them into a QueryResult protocol buffer object, and the values are stored inside there.

This QueryResult object is defined by the protocol buffer file at:

https://github.com/hex-inc/vegafusion/blob/f7a355f959a0e00db6daab828a711f2cca156d79/vegafusion-core/src/proto/services.proto#L21-L26

The deserialization happens in Rust, compiled to WASM, at

https://github.com/hex-inc/vegafusion/blob/f7a355f959a0e00db6daab828a711f2cca156d79/vegafusion-wasm/src/lib.rs#L178C29-L178C29.

So yeah, one option is that you could use the protoc command line tool to generate a…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@jhyoo1982
Comment options

@jonmmease
Comment options

Answer selected by jhyoo1982
@jhyoo1982
Comment options

@jhyoo1982
Comment options

@jonmmease
Comment options

@jhyoo1982
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants