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.

NoSuchEntryPoint: No 'notebook' entry point found in group 'altair.vegalite.v2.renderer'

See original GitHub issue

I have followed the installation instructions here:

https://altair-viz.github.io/getting_started/installation.html#quick-start-altair-notebook

This appears to be a problem with the 2.0 version of vega being published an hour ago. This notebook was working previously with 1.3.0. In fact, if I change the install line to:

!pip install --upgrade altair vega_datasets notebook vega==1.3.0

things work.

Here’s my output without the vega version restriction.

# Install Altair (for visualizations)
!pip install --upgrade altair vega_datasets notebook vega

<snip>

Installing collected packages: altair, notebook, vega
  The scripts jupyter-bundlerextension, jupyter-nbextension, jupyter-notebook and jupyter-serverextension are installed in '/home/jupyter-user/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed altair-2.2.2 notebook-5.6.0 vega-2.0.0

<snip>

import vega
import altair as alt

# for the notebook only (not for JupyterLab) run this command once per session
print(vega.__version__)
alt.renderers.enable('notebook')

2.0.0
---------------------------------------------------------------------------
NoSuchEntryPoint                          Traceback (most recent call last)
~/.local/lib/python3.4/site-packages/altair/utils/plugin_registry.py in _enable(self, name, **options)
    133             try:
--> 134                 ep = entrypoints.get_single(self.entry_point_group, name)
    135             except entrypoints.NoSuchEntryPoint:

~/.local/lib/python3.4/site-packages/entrypoints.py in get_single(group, name, path)
    185 
--> 186     raise NoSuchEntryPoint(group, name)
    187 

NoSuchEntryPoint: No 'notebook' entry point found in group 'altair.vegalite.v2.renderer'

During handling of the above exception, another exception occurred:

ValueError                                Traceback (most recent call last)
<ipython-input-4-152d9ee0b52b> in <module>()
      4 # for the notebook only (not for JupyterLab) run this command once per session
      5 print(vega.__version__)
----> 6 alt.renderers.enable('notebook')

~/.local/lib/python3.4/site-packages/altair/utils/plugin_registry.py in enable(self, name, **options)
    169         if name is None:
    170             name = self.active
--> 171         return PluginEnabler(self, name, **options)
    172 
    173 

~/.local/lib/python3.4/site-packages/altair/utils/plugin_registry.py in __init__(self, registry, name, **options)
     23         self.options = options
     24         self.original_state = registry._get_state()
---> 25         self.registry._enable(name, **options)
     26 
     27     def __enter__(self):

~/.local/lib/python3.4/site-packages/altair/utils/plugin_registry.py in _enable(self, name, **options)
    135             except entrypoints.NoSuchEntryPoint:
    136                 if name in self.entrypoint_err_messages:
--> 137                     raise ValueError(self.entrypoint_err_messages[name])
    138                 else:
    139                     raise

ValueError: 
To use the 'notebook' renderer, you must install the vega package
and the associated Jupyter extension.
See https://altair-viz.github.io/getting_started/installation.html
for more information.

Let me know if you need more information.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (12 by maintainers)

github_iconTop GitHub Comments

5reactions
jakevdpcommented, Dec 20, 2019

just downgrading altair from 4.0 to 3.0 its work fine

No need to downgrade: use the default renderer (i.e. delete alt.renderers.enable('notebook') from your code) and Altair 4.0 will work fine with Jupyter Notebook.

4reactions
jakevdpcommented, Mar 25, 2019

Yes, the new Vega package is for Altair 3.

I plan to release Altair 3 some time this week… depending on how much time I can find in the evenings after kids go to sleep 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display Troubleshooting — Altair 4.2.0 documentation
NoSuchEntryPoint: No 'notebook' entry point found in group 'altair.vegalite.v2.renderer'. This means that you have not installed the vega package.
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
Run into the issue where Altair won't plot inline in your Jupyter notebooks? Here's a reason why it happens and how to fix...
Read more >
Altair Vega compilation different between Streamlit versions
I want to keep pace with the new features in the latest releases of Streamlit, but I find myself stuck on 1.9.x as...
Read more >
Starting_kit | Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data ... entry point found in group 'altair.vegalite.v3.renderer' During ...
Read more >

github_iconTop Related Medium Post

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