question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

alt.renderers.enable("mimebundle") returns NoSuchEntryPoint

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jakevdpcommented, Jul 13, 2020

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.

0reactions
piccolbocommented, Oct 9, 2020

Problem still unchanged for me in 4.2.0.dev0 installed from master moments ago. Same repro.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found