如果希望在jupyterlab中显示plotly图像,如下图所示:
# 安装node
>>> curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
# 安装插件
>>> jupyter labextension install jupyterlab-plotly@4.10.0
>>> jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.10.0
如果安装插件过程中报错,则可能是网络原因
参考:https://plotly.com/python/getting-started/#jupyterlab-support-python-35