Plotly in Jupyter issue

前端 未结 9 2334
暗喜
暗喜 2021-02-13 03:47

I installed plotly.py to work some plots using Jupyter but I cannot import it.

! pip install plotly --upgrade
Requirement already up-to-date: plotly in c:\\pytho         


        
9条回答
  •  既然无缘
    2021-02-13 04:02

    After a while searching about this problem, I discovered it is a broken conda-kernel trough jupyter notebook.

    Inside your notebook check if it is pointing to the write python executable's envinronment path by:

    import sys
    sys.executable 
    
    # >>>> 'C:\\Users\\username\\AppData\\Local\\Continuum\\anaconda3\\envs\\**wrong_env**\\python.exe'
    

    If it isn't, the simple solution is to install nb_conda:

    conda install nb_conda
    

提交回复
热议问题