SheffieldML / notebook

Collection of jupyter notebooks for demonstrating software.
BSD 3-Clause "New" or "Revised" License
163 stars 107 forks source link

module 'plotly' has no attribute 'plotly' #17

Open jarrTecn opened 4 years ago

jarrTecn commented 4 years ago

Hello, I'm trying to run basic_gp, but when I run

GPy.plotting.show(fig, filename='basic_gp_regression_notebook')

it returns

module 'plotly' has no attribute 'plotly'

also when I type

GPy.plotting.change_plotting_library('plotly')

returns

/usr/local/lib/python3.6/dist-packages/plotly/graph_objs/_deprecations.py:385: DeprecationWarning:

plotly.graph_objs.Line is deprecated.
Please replace it with one of the following more specific types
  - plotly.graph_objs.scatter.Line
  - plotly.graph_objs.layout.shape.Line
  - etc.

What should I do?

xiaolingyi commented 4 years ago

Hi,I encounter the same question as you.So did you have solve that yet?

stephenjlee commented 4 years ago

one option is to use an older version of plotly.

another is to use matplotlib

GPy.plotting.change_plotting_library('matplotlib')

onurtore commented 3 years ago

one option is to use an older version of plotly.

another is to use matplotlib

GPy.plotting.change_plotting_library('matplotlib')

Do you know which version is ok to use?

Finn-Ashley commented 2 years ago

Any update on this?

karinadorisvihta commented 2 years ago

m.plot works with matplotlib, however, m.plot(plot_density=True) doesn't, and plotly still throws the same error.

iserranoe commented 1 year ago

I'm having the same problem with the notebook GPy/basic_gp.ipynb, it's 7 years old so I guess plotly changed. It's working fine with matplot but plotly is more versatile...