[英]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.