Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/334.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Seaborn color brewer非交互式_Python_Seaborn_Colorbrewer - Fatal编程技术网

Python Seaborn color brewer非交互式

Python Seaborn color brewer非交互式,python,seaborn,colorbrewer,Python,Seaborn,Colorbrewer,我试图在Jupyter中使用Seaborn的交互式颜色酿酒工具,但是我很难想出如何以交互方式使用它。目前,它只是为我提供了默认值 Seaborn的交互式choose\u colorbrewer\u palette工具需要ipywidgets(或IPython.html.widgets)。为了能够在jupyter中使用这些小部件,您需要激活它们 jupyter nbextension enable --py widgetsnbextension 要在jupyter实验室中使用,还需要安装Jupy

我试图在Jupyter中使用Seaborn的交互式颜色酿酒工具,但是我很难想出如何以交互方式使用它。目前,它只是为我提供了默认值


Seaborn的交互式
choose\u colorbrewer\u palette
工具需要
ipywidgets
(或
IPython.html.widgets
)。为了能够在jupyter中使用这些小部件,您需要激活它们

jupyter nbextension enable --py widgetsnbextension
要在jupyter实验室中使用,还需要安装JupyterLab扩展

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
输入问题中的代码,效果与预期一样


您是否安装了
ipywidgets
?是的,
ipywidgets
7.4.2版,带有Jupyter LabAwesome,谢谢!我想我遗漏的主要内容是
nodejs
和最新版本的Jupyter实验室(
conda update jupyterlab