Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Plotly_domain error

Hi, after installing plotly, I ran over the python_cheat_sheet.
However, when doing an example, I end up with this
( python 2.7.11 / plotly 1.12.9 )

any help ?

trace = go.Bar ( x=[1,2],y=[3,4])
data = [trace]
Traceback (most recent call last):
File “”, line 1, in
File “/Library/Python/2.7/site-packages/plotly/plotly/”, line 175, in iplot
return tools.embed(url, **embed_options)
File “/Library/Python/2.7/site-packages/plotly/”, line 444, in embed
!= session.get_session_config()[‘plotly_domain’]):
KeyError: ‘plotly_domain’

nevermind, problem resolved.
py.iplot should be py.plot