Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 384
Kernel: Python 3 (system-wide)
import altair as alt from vega_datasets import data alt.renderers.enable('notebook') RendererRegistry.enable('notebook') iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalLength', y='petalWidth', color='species' )
--------------------------------------------------------------------------- NoSuchEntryPoint Traceback (most recent call last) ~/.local/lib/python3.6/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: /usr/local/lib/python3.6/dist-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.v3.renderer' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) <ipython-input-3-568c732ef62f> in <module> 1 import altair as alt 2 from vega_datasets import data ----> 3 alt.renderers.enable('notebook') 4 RendererRegistry.enable('notebook') 5 ~/.local/lib/python3.6/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.6/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.6/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.