Skip to content
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

Support Colab #55

Closed
jonmmease opened this issue Jan 17, 2022 · 2 comments · Fixed by #72
Closed

Support Colab #55

jonmmease opened this issue Jan 17, 2022 · 2 comments · Fixed by #72
Labels
enhancement New feature or request

Comments

@jonmmease
Copy link
Collaborator

I tried vegafusion-jupyter==0.0.1a1 in Google Colab. Colab is successfully able to load the extension from a CDN, and the widget is displayed

Screen Shot 2022-01-17 at 11 53 58 AM

But the comm message is not successfully sent from the client to the server. Here is the browser console message

Screen Shot 2022-01-17 at 11 53 40 AM

There's not a lot to go on to debug this unforntunately

@jonmmease jonmmease added the enhancement New feature or request label Jan 17, 2022
@jonmmease
Copy link
Collaborator Author

This error happens when using the send method to send a custom message from client to server. I think Colab supports this since they support Jupyter Comms, but we might have better luck being compatible with non-native jupyter contexts if we use traitlet properties to communicate between client and server.

@dwootton
Copy link

One comment on here for anyone using it in colab, you'll need to add vegafusion-python-embed to the packages to install.
Following the quick start in the readme, your pip install will become:
pip install vegafusion-jupyter vega-datasets vegafusion-python-embed

Example Colab here

Thanks @jonmmease for solving this bug before I even ran into it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants