Created
January 9, 2024 12:56
-
-
Save zsofiarebeka/88b950cec2b3d5d9f07d9e4b8f812f21 to your computer and use it in GitHub Desktop.
Embedding a plotly with gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!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