[英]Seaborn color brewer not interactive
Seaborn的交互式choose_colorbrewer_palette
工具需要ipywidgets
(或IPython.html.widgets
)。 為了能夠在jupyter中使用這些小部件,您需要激活它們
jupyter nbextension enable --py widgetsnbextension
要在jupyter Lab中使用,還需要安裝JupyterLab Extension
jupyter labextension install @jupyter-widgets/jupyterlab-manager
這需要安裝nodejs
。
因此,在conda中進行完整安裝可能看起來像
> conda install seaborn juypter jupyterlab ipywidgets nodejs
> jupyter nbextension enable --py widgetsnbextension
> jupyter labextension install @jupyter-widgets/jupyterlab-manager
開始的Jupyter實驗室
> juypter lab
並按預期輸入問題中的代碼。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.