Skip to content

Support vega and vegalite mimetypes directly #2683

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
rgbkrk opened this issue Jul 25, 2017 · 1 comment
Open

Support vega and vegalite mimetypes directly #2683

rgbkrk opened this issue Jul 25, 2017 · 1 comment

Comments

@rgbkrk
Copy link
Member

rgbkrk commented Jul 25, 2017

Rather than making an extension on the jupyter notebook, I'd like to see vega and vegalite supported out of the box in the classic notebook. JupyterLab, nteract, hydrogen, and commuter are all supporting it out of the box. Since the mimerendering customization requires reinitializing all outputs on the page after load, I'd like to see vega get built in by default.

@jpivarski
Copy link

As it is, developers are tempted to use _repr_mimebundle_ for JupyterLab, because it recognizes the "application/vnd.vegalite.v2+json" MIME type directly, and _ipython_display_ in Jupyter Notebook as a fallback.

In fact, it's more than a fallback because _ipython_display_ will cause a "JavaScript output is disabled in JupyterLab" message in JupyterLab: somehow we'd have to use the MIME exclusively for JupyterLab and the display exclusively for Jupyter Notebook, but there doesn't even seem to be a way to test for which environment we're in.

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

No branches or pull requests

2 participants