Skip to content

on-premise specific python streaming instructions  #798

Open
@cldougl

Description

@cldougl

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions