Пытаясь заставить Altair работать с Jupyter Notebook, я установил его, используя
conda install -c conda-forge altair vega_datasets notebook vega
Но когда я пытаюсь сделать примерный график
import altair as alt
from vega_datasets import data
# for the notebook only (not for JupyterLab) run this command once per session
alt.renderers.enable('notebook')
iris = data.iris()
alt.Chart(iris).mark_point().encode(
x='petalLength',
y='petalWidth',
color='species'
)
, как видно на их краткое руководство по началу работы , я получаю
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.
, хотя я установил Vega с использованием Conda.Хотя я могу сделать примерные графики для Vega.Я не могу включить расширение Jupyter, хотя, как говорит Jupyter, оно несовместимо.
Любая помощь приветствуется.