簡體   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