Python Forum
Plotly error - AttributeError: module 'plotly.plotly' has no attribute 'iplot'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plotly error - AttributeError: module 'plotly.plotly' has no attribute 'iplot'
#1
Hi all,

I am having problems to plot a simple example from plotly (https://plot.ly/python/v3/3d-surface-lighting/). The code that I used and the error message is below. Using Pycharm with anaconda environment.

import plotly.plotly as py
import plotly.graph_objs as go
import plotly.tools as tls
import numpy as np

x = np.linspace(-np.pi, np.pi, 100)
y = np.linspace(-np.pi, np.pi, 100)

Y, X = np.meshgrid(x, y)

Z1 = np.cos(X)*np.sin(Y)
Z2 = 2 + np.cos(X)*np.sin(Y)

trace1 = go.Surface(z=Z1, colorscale='Viridis')

py.iplot([trace1])


Error:
ERROR MESSAGE: Traceback (most recent call last): File "<input>", line 16, in <module> AttributeError: module 'plotly.plotly' has no attribute 'iplot'
Many thanks in advance,
Fernando
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error: audioio has no attribute 'AudioOut' netwrok 3 594 Oct-22-2023, 05:53 PM
Last Post: netwrok
  getpass.getpass() results in AttributeError: module 'os' has no attribute 'O_NOCTTY' EarthAndMoon 4 719 Oct-03-2023, 02:00 PM
Last Post: deanhystad
  CandleStick & MACD Indicator using plotly.graph_object bianca 0 529 Aug-18-2023, 06:46 PM
Last Post: bianca
  AttributeError: '_tkinter.tkapp' object has no attribute 'username' Konstantin23 4 1,533 Aug-04-2023, 12:41 PM
Last Post: Konstantin23
  Parallel processing - AttributeError: Can't get attribute 'sktimekmeans' Mohana1983 1 704 Jun-22-2023, 02:33 AM
Last Post: woooee
  Python: AttributeError: 'PageObject' object has no attribute 'extract_images' Melcu54 2 3,667 Jun-18-2023, 07:47 PM
Last Post: Melcu54
  cx_oracle Error - AttributeError: 'function' object has no attribute 'cursor' birajdarmm 1 2,215 Apr-15-2023, 05:17 PM
Last Post: deanhystad
  Pandas AttributeError: 'DataFrame' object has no attribute 'concat' Sameer33 5 5,302 Feb-17-2023, 06:01 PM
Last Post: Sameer33
  Plotly send pandas.errors.UndefinedVariableError. Frankduc 3 1,350 Oct-27-2022, 02:26 PM
Last Post: deanhystad
  binning_endpoints ->plotly Luis_liverpool 0 808 Aug-09-2022, 10:13 AM
Last Post: Luis_liverpool

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020