Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
jarrTecn opened this issue Sep 30, 2019 · 6 comments
Open

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

jarrTecn opened this issue Sep 30, 2019 · 6 comments

Comments

@jarrTecn
Copy link

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
Copy link

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

@stephenjlee
Copy link

one option is to use an older version of plotly.

another is to use matplotlib

GPy.plotting.change_plotting_library('matplotlib')

@onurtore
Copy link

onurtore commented Jul 17, 2021

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?

@finnashley
Copy link

Any update on this?

@karinadorisvihta
Copy link

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

@iserranoe
Copy link

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...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants