-
Notifications
You must be signed in to change notification settings - Fork 793
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
"Open in Vega Editor" does not work in VS Code Notebooks #2875
Comments
Thanks for raising @JannisKoeksel! I noticed the same. Are you able to figure out why this is not working? Is there documentation by MS VSCode that can support this issue how we could improve this? |
Does this look related? microsoft/vscode-jupyter#11294 |
So there are two problems:
Problem one could be solved by by e.g. using ipywidgets.widgets.Button and displaying them instead of the vega-embed actions. Then using python webbrowser to open a new tab. Regarding the second issue, the only viable solution I can think of is to dynamically write a html file or use data: base64 encoding with the definition and embedding vega editor as an iframe. Then the postMessage mechanism should work again. @ChristopherDavisUCI yes is seams to be the same issue. I would really like to use this feature so disabling it is my least favorite solution. |
This definitely seems worth looking into. As a not-very-satisfying workaround, do you know about |
No I wasn't aware, but |
I opened microsoft/vscode-jupyter#13261 where we can continue this discussion. Since it is an issue with VS Code and not with Altair, I will close this issue. |
The actions View Source, View Compiled Vega and Open in Vega Editor provided next to the plot do not work in VS Code.
The links redirect to the top of the notebook, so I'm guessing the event handlers do not work as intended.
I am using Version 4.2.2.
The text was updated successfully, but these errors were encountered: