[英]Seaborn color brewer not interactive
Seaborn's interactive choose_colorbrewer_palette
tool requires ipywidgets
(or IPython.html.widgets
). Seaborn的交互式
choose_colorbrewer_palette
工具需要ipywidgets
(或IPython.html.widgets
)。 In order to be able to use those widgets in jupyter you need to activate them 为了能够在jupyter中使用这些小部件,您需要激活它们
jupyter nbextension enable --py widgetsnbextension
For use in jupyter lab you also need to install the JupyterLab Extension 要在jupyter Lab中使用,还需要安装JupyterLab Extension
jupyter labextension install @jupyter-widgets/jupyterlab-manager
This requires nodejs
to be installed. 这需要安装
nodejs
。
So a complete install in conda may look like 因此,在conda中进行完整安装可能看起来像
> conda install seaborn juypter jupyterlab ipywidgets nodejs
> jupyter nbextension enable --py widgetsnbextension
> jupyter labextension install @jupyter-widgets/jupyterlab-manager
The starting jupyter lab 开始的Jupyter实验室
> juypter lab
and typing in the code from the question works as expected. 并按预期输入问题中的代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.