Skip to content

world_readable gives timeout/error #67

Closed
@hughesadam87

Description

@hughesadam87

I found a recent bug which was hard for me to trace. When I use the world_readable=False keyword in iplot_mpl(), I get a timeout. Not going to post the plot call because it uses custom libraries. Do you guys also get this timeout in general when doing

iplot_mpl(fig, world_readable=False)

HTTPError Traceback (most recent call last)
in ()
2
3 range_timeplot(ts.wavelength_slices(8), ax=ax)
----> 4 py.iplot_mpl(fig, update=_pyupdate, resize=False, world_readable=False)

/home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/plotly/plotly/plotly.pyc in iplot_mpl(fig, resize, strip_style, update, *_plot_options)
231 return iplot(fig, *_plot_options)
232
--> 233
234 def plot_mpl(fig, resize=True, strip_style=False, update=None, **plot_options):
235 """Replot a matplotlib figure with plotly.

/home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/plotly/plotly/plotly.pyc in iplot(figure_or_data, *_plot_options)
100 res = plot(figure_or_data, *_plot_options)
101 urlsplit = res.split('/')
--> 102 username, plot_id = urlsplit[-2][1:], urlsplit[-1] # TODO: HACKY!
103
104 embed_options = dict()

/home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/plotly/plotly/plotly.pyc in plot(figure_or_data, validate, *_plot_options)
183 res = _send_to_plotly(figure, *_plot_options)
184 if res['error'] == '':
--> 185 if plot_options['auto_open']:
186 try:
187 from webbrowser import open as wbopen

/home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/plotly/plotly/plotly.pyc in _send_to_plotly(figure, **plot_options)
568 return return_data['image']
569 else:
--> 570 try:
571 if ('content-type' in headers and
572 'json' in headers['content-type']):

/home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/requests/models.pyc in raise_for_status(self)
793
794 if http_error_msg:
--> 795 raise HTTPError(http_error_msg, response=self)
796
797 def close(self):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions