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]
py.iplot(data)
Traceback (most recent call last):
File β€œβ€, line 1, in
File β€œ/Library/Python/2.7/site-packages/plotly/plotly/plotly.py”, line 175, in iplot
return tools.embed(url, **embed_options)
File β€œ/Library/Python/2.7/site-packages/plotly/tools.py”, line 444, in embed
!= session.get_session_config()[β€˜plotly_domain’]):
KeyError: β€˜plotly_domain’

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