iplot doesnt work
Hi,
I am struggling with to run a piece of code of the INTRODUCTION TO EIKON WEB AND SCRIPTING API webinar.
import eikon as ek
ek.set_app_id('xxxxxxxxx')
msft=ek.get_timeseries('MSFT.O',fields='CLOSE',start_date='2015-06-23',end_date='2017-06-23')
import cufflinks
msft.iplot(kind='line',color='blue',bestfit=True)
returns
Aw, snap! We don't have an account for ''. Want to try again? You can authenticate with your email address or username. Sign in is not case sensitive.
Don't have an account? plot.ly
Questions? support@plot.ly
---------------------------------------------------------------------------
PlotlyError Traceback (most recent call last)
<ipython-input-12-df8fac0cd8d5> in <module>()
----> 1msft.iplot(kind='line',color='blue',bestfit=True)
C:\Users\koflerma\AppData\Local\Continuum\Anaconda3\lib\site-packages\cufflinks\plotlytools.py in _iplot(self, data, layout, filename, sharing, kind, title, xTitle, yTitle, zTitle, theme, colors, colorscale, fill, width, dash, mode, symbol, size, barmode, sortbars, bargap, bargroupgap, bins, histnorm, histfunc, orientation, boxpoints, annotations, keys, bestfit, bestfit_colors, mean, mean_colors, categories, x, y, z, text, gridcolor, zerolinecolor, margin, labels, values, secondary_y, secondary_y_title, subplots, shape, error_x, error_y, error_type, locations, lon, lat, asFrame, asDates, asFigure, asImage, dimensions, asPlot, asUrl, online, **kwargs)
1043 return py.plot(figure,sharing=sharing,filename=filename,validate=validate,auto_open=False)
1044 else:
-> 1045return iplot(figure,sharing=sharing,filename=filename,validate=validate,online=online)
1046
1047
C:\Users\koflerma\AppData\Local\Continuum\Anaconda3\lib\site-packages\cufflinks\plotlytools.py in iplot(data_or_figure, validate, sharing, filename, online, **kwargs)
1187 filename='Plotly Playground {0}'.format(time.strftime("%Y-%m-%d %H:%M:%S"))
1188 return py.iplot(data_or_figure,validate=validate,sharing=sharing,
-> 1189 filename=filename)
1190
1191 def _ta_figure(self,**kwargs):
C:\Users\koflerma\AppData\Local\Continuum\Anaconda3\lib\site-packages\plotly\plotly\plotly.py in iplot(figure_or_data, **plot_options)
156 embed_options['height'] = str(embed_options['height']) + 'px'
157
--> 158return tools.embed(url, **embed_options)
159
160
C:\Users\koflerma\AppData\Local\Continuum\Anaconda3\lib\site-packages\plotly\tools.py in embed(file_owner_or_url, file_id, width, height)
388 else:
389 url = file_owner_or_url
--> 390return PlotlyDisplay(url, width, height)
391 else:
392 if (get_config_defaults()['plotly_domain']
C:\Users\koflerma\AppData\Local\Continuum\Anaconda3\lib\site-packages\plotly\tools.py in __init__(self, url, width, height)
1363 def __init__(self, url, width, height):
1364 self.resource = url
-> 1365self.embed_code = get_embed(url, width=width, height=height)
1366 super(PlotlyDisplay, self).__init__(data=self.embed_code)
1367
C:\Users\koflerma\AppData\Local\Continuum\Anaconda3\lib\site-packages\plotly\tools.py in get_embed(file_owner_or_url, file_id, width, height)
293 "'{1}'."
294 "\nRun help on this function for more information."
--> 295 "".format(url, plotly_rest_url))
296 urlsplit = six.moves.urllib.parse.urlparse(url)
297 file_owner = urlsplit.path.split('/')[1].split('~')[1]
PlotlyError: Because you didn't supply a 'file_id' in the call, we're assuming you're trying to snag a figure from a url. You supplied the url, '', we expected it to start with 'https://plot.ly'.
Run help on this function for more information.
I have to admit that a am not overly familiar with Jupyter.
Thanks in advance!
0
Best Answer
Answers
-
-
Thanks Joris. Have restarted, but no luck
0 -
Hi @m.kofler,
You have to explicitly go offline when using cufflinks if you don't have an account. For example:
import cufflinks as cf
cf.go_offline()1 -
Worked. Many thanks Nick!
0 -
Followed the steps and works, cheers Jorge!
0 -
@m.kofler: Please see iPython notebooks at TR samples github site, which have working samples using plotly and cufflinks.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛