Skip to content

Instantly share code, notes, and snippets.

@zsofiarebeka
Created January 9, 2024 12:56
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 zsofiarebeka/88b950cec2b3d5d9f07d9e4b8f812f21 to your computer and use it in GitHub Desktop.
Save zsofiarebeka/88b950cec2b3d5d9f07d9e4b8f812f21 to your computer and use it in GitHub Desktop.
Embedding a plotly with gist
!pip install goldhand chart-studio
from goldhand import *
import chart_studio
import chart_studio.plotly as py
username=''
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