Skip to content

Commit d19c6ca

Browse files
committed
added some print statements to check progresses
1 parent 54c1386 commit d19c6ca

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

plotly/plotly/plotly.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ def plot(figure_or_data, validate=True, **plot_options):
213213
# figure = tools.return_figure_from_figure_or_data(figure_or_data, False)
214214
#else:
215215
figure = tools.return_figure_from_figure_or_data(figure_or_data, validate)
216-
217216
for entry in figure['data']:
218217
if ('type' in entry) and (entry['type'] == 'scattergl'):
219218
continue
@@ -1402,6 +1401,7 @@ def _send_to_plotly(figure, **plot_options):
14021401
fig = tools._replace_newline(figure) # does not mutate figure
14031402
data = json.dumps(fig['data'] if 'data' in fig else [],
14041403
cls=utils.PlotlyJSONEncoder)
1404+
14051405
credentials = get_credentials()
14061406
validate_credentials(credentials)
14071407
username = credentials['username']
@@ -1422,12 +1422,19 @@ def _send_to_plotly(figure, **plot_options):
14221422
key=api_key,
14231423
origin='plot',
14241424
kwargs=kwargs)
1425+
print payload
1426+
print ' '
14251427

14261428
url = get_config()['plotly_domain'] + "/clientresp"
14271429

1430+
print url
1431+
14281432
r = requests.post(url, data=payload,
14291433
verify=get_config()['plotly_ssl_verification'])
14301434
r.raise_for_status()
1435+
1436+
print r.text
1437+
14311438
r = json.loads(r.text)
14321439

14331440
if 'error' in r and r['error'] != '':

0 commit comments

Comments
 (0)