Skip to content

Instantly share code, notes, and snippets.

@Jk33033
Created January 9, 2024 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jk33033/ecba8fd7868372dd29084c469d8b656f to your computer and use it in GitHub Desktop.
Save Jk33033/ecba8fd7868372dd29084c469d8b656f to your computer and use it in GitHub Desktop.
embedding a plotly
from goldhand import *
import chart_studio
import chart_studio.plotly as py
username='Jk33033'
api_key=''
chart_studio.tools.set_credentials_file(username=username,
api_key=api_key)
tw = Tw()
ticker= 'BTC-USD'
t = GoldHand(ticker)
p = t.plotly_last_year(tw.get_plotly_title(ticker))
p.show()
py.plot(p, filename="goldhand", auto_open = True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment