Created
January 9, 2024 12:56
-
-
Save corinne167225/41b65097b9f8b8df04c21afe7187c4b3 to your computer and use it in GitHub Desktop.
Embedding Plot into Medium
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
#can !pip install goldhand and chart_studio if you haven't already | |
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