Advertisement
Guest User

Untitled

a guest
May 27th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/Users/.../PycharmProjects/Sequence4/Fit.py", line 18, in <module>
  3. plot_url = py.plot(data, filename='basic-error-bar')
  4. File "/Users/.../anaconda/lib/python3.5/site-packages/plotly/plotly/plotly.py", line 241, in plot
  5. res = _send_to_plotly(figure, **plot_options)
  6. File "/Users.../anaconda/lib/python3.5/site-packages/plotly/plotly/plotly.py", line 1401, in _send_to_plotly
  7. validate_credentials(credentials)
  8. File "/Users/.../anaconda/lib/python3.5/site-packages/plotly/plotly/plotly.py", line 1350, in validate_credentials
  9. raise exceptions.PlotlyLocalCredentialsError()
  10. plotly.exceptions.PlotlyLocalCredentialsError:
  11. Couldn't find a 'username', 'api-key' pair for you on your local machine. To sign in temporarily (until you stop running Python), run:
  12. import plotly.plotly as py
  13. py.sign_in('username', 'api_key')
  14.  
  15. Even better, save your credentials permanently using the 'tools' module:
  16. import plotly.tools as tls
  17. tls.set_credentials_file(username='username', api_key='api-key')
  18.  
  19. For more help, see https://plot.ly/python.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement