Created
January 9, 2024 13:36
-
-
Save Jk33033/ecba8fd7868372dd29084c469d8b656f to your computer and use it in GitHub Desktop.
embedding a plotly
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
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