Thanks to visit codestin.com
Credit goes to github.com

Skip to content

on-premise specific python streaming instructions #798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cldougl opened this issue Aug 14, 2017 · 0 comments
Open

on-premise specific python streaming instructions #798

cldougl opened this issue Aug 14, 2017 · 0 comments
Assignees
Labels

Comments

@cldougl
Copy link
Member

cldougl commented Aug 14, 2017

cc @BRONSOLO

add onprem instructions to streaming doc: https://plot.ly/python/streaming-tutorial/#getting-set-up

Streaming over https was introduced to the Python wrapper here: plotly/plotly.py#461.

To enable streaming over https, the client must specify their plotly_streaming_domain as 'https://their.streaming.domain' in their configuration file. Otherwise, the code will default to using http for streaming: https://github.com/plotly/plotly.py/blob/4a73c179bf9af5fb382a1cdc554826fc64a699c2/plotly/plotly/plotly.py#L529

Streaming over https using self-signed certificates was introduced to the Python wrapper here: plotly/plotly.py#495.

To do this, the client must have include the https:// scheme when setting their streaming domain (same as above) and have set plotly_ssl_verification to false in their configuration file.

One thing to note is that this relies on creating an "unverified context" https://github.com/chriddyp/chunked_requests/pull/9/files#diff-27e9892e71752a3ec19b410373cbfe50R114, which is only supported for Python >= 2.7.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants