Python Seaborn color brewer非交互式
我试图在Jupyter中使用Seaborn的交互式颜色酿酒工具,但是我很难想出如何以交互方式使用它。目前,它只是为我提供了默认值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
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
)