alt.renderers.enable("mimebundle") returns NoSuchEntryPoint
See original GitHub issueHi, since altair 4.0 I’ve been trying to restore inline charts in Atom/hydrogen, The docs (https://altair-viz.github.io/user_guide/display_frontends.html?highlight=hydrogen) read:
The Hydrogen project, which is built on nteract and renders Altair charts via the mimebundle renderer.
But with altair 4.1.0 trying to enable it results in the error in the subject. altair.renderers shows this list
# "colab",
# "default",
# "html",
# "json",
# "jupyterlab",
# "kaggle",
# "mimetype",
# "nteract",
# "png",
# "svg",
# "zeppelin",
Tried a few to no avail. Using the nteract renderer results in this error SyntaxError: Unexpected token o in JSON at position 1
The chart displays just fine in the altair_viewer. Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Customizing Renderers — Altair 4.2.0 documentation
Renderers in Altair are all based on the mimebundle representation accessed by the ... The alt.renderers registry allows the user to define and...
Read more >python - Altair - Issues setting-up - Stack Overflow
Remove the line alt.renderers.enable('notebook'). This is no longer necessary in Altair 4.0 or newer. You'll have to restart your runtime ...
Read more >Getting Altair to render inline in Jupyter - Janis Lesinskis' Blog
When using Altair without nteract, a user must run alt.renderers.enable('notebook') but I ran into a subsequent issue with attempting to run ...
Read more >Altair Debugging Guide - Google Colab
alt.renderers.enable('mimebundle'). To run offline in Jupyter Notebook you must install an additional dependency, the vega package. Run this command in your ...
Read more >altair-viewer - PyPI
import altair as alt alt.renderers.enable('altair_viewer'). This will cause charts at the end of a Jupyter notebook cell to be rendered in a ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, I see. It looks like hydrogen is expecting a JSON string, when the mimebundle contains the actual object. I would report this issue to the Hydrogen team; I don’t think Altair should be sending the serialized JSON within the mimebundle.
Problem still unchanged for me in 4.2.0.dev0 installed from master moments ago. Same repro.