繁体   English   中英

Seaborn色料酿造商无法互动

[英]Seaborn color brewer not interactive

我正在尝试在Jupyter中使用Seaborn的交互式色彩调制器工具,但是我正在努力弄清楚如何以交互方式使用它。 目前,它只是为我提供默认值。

Seaborn色料酿造机

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM