首页 > 解决方案 > 在 jupyter notebook 中使用 4.4.1 版本进行 plotly 升级

问题描述

在 jupyter notebook 中使用 4.4.1 版本升级。plotly 4.4.1 安装完成并成功,但在最新版本的 jupyter notebooks 中没有体现。

在 plotly 安装之前:当前的 plotly 版本是 4.2.1

import sys; 
print(sys.version)
import plotly
print(plotly.__version__)

3.5.4 |Anaconda custom (64-bit)| (default, Oct 13 2017, 11:22:58) 
[GCC 7.2.0]
4.2.1

安装

!pip install plotly==4.4.1 --trusted-host pypi.org --trusted-host files.pythonhosted.org

Collecting plotly==4.4.1
  Downloading https://files.pythonhosted.org/packages/8e/ce/6ea5683c47b682bffad39ad41d10913141b560b1b875a90dbc6abe3f4fa9/plotly-4.4.1-py2.py3-none-any.whl (7.3MB)
     |████████████████████████████████| 7.3MB 5.7MB/s eta 0:00:01     |███                             | 686kB 2.3MB/s eta 0:00:03     |██████▉                         | 1.6MB 2.3MB/s eta 0:00:03     |███████████████▏                | 3.5MB 2.3MB/s eta 0:00:02     |████████████████████████▌       | 5.6MB 2.3MB/s eta 0:00:01
Requirement already satisfied: six in /home/nbuser/anaconda3_420/lib/python3.5/site-packages (from plotly==4.4.1) (1.11.0)
Requirement already satisfied: retrying>=1.3.3 in /home/nbuser/anaconda3_420/lib/python3.5/site-packages (from plotly==4.4.1) (1.3.3)
Installing collected packages: plotly
  Found existing installation: plotly 4.8.1
    Uninstalling plotly-4.8.1:
      Successfully uninstalled plotly-4.8.1
Successfully installed plotly-4.4.1
WARNING: You are using pip version 19.3.1; however, version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

在 jupyter notebook 中安装 4.4.1 后,我只看到 4.2.1。

import sys; 
print(sys.version)
import plotly
print(plotly.__version__)

3.5.4 |Anaconda custom (64-bit)| (default, Oct 13 2017, 11:22:58) 
[GCC 7.2.0]
4.2.1

如何在 jupyter 笔记本中反映 4.4.1,以便我可以在 4.4.1 中大量看到 sunbrust。

标签: pythonplotlydata-visualization

解决方案


推荐阅读