Skip to content
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

NotebookApp.websocket_compression_options config #2492

Merged
merged 2 commits into from
May 25, 2017

Conversation

minrk
Copy link
Member

@minrk minrk commented May 11, 2017

expose passthrough for WebSocketHandler.get_compression_options

adds NotebookApp.websocket_compression_options configurable as a passthrough for setting the return value for WebSocketHandler.get_compression_options() with a default of None (no compression).

This works, but marked WIP while waiting for a decision on default from #2490. Other options:

  • default: 'auto' so that compression is off for localhost by default and on for remote connections (as identified via remote_ip)
  • allow setting a callable instead of a scalar, so that config could enable custom logic (such as 'auto' based on remote_ip)

closes #2490

adds `NotebookApp.websocket_compression_options` configurable,
with a default of None (no compression)
this sets metadata.collapsed = true metadata on cells with no output

causing churn in notebook files
@blink1073
Copy link
Contributor

Revert ccba3bd in favor of #2501?

@jasongrout
Copy link
Member

+1 to the default being no compression, like the current PR has.

@maartenbreddels
Copy link
Contributor

If this goes into a release, we can 'advertise' with a 100x data transfer rate improvement for ipywidgets.

@takluyver takluyver added this to the 5.1 milestone May 24, 2017
@takluyver
Copy link
Member

@minrk I think there's a consensus in favour of what you've implemented here. Do you want to do anything else on this before we merge it?

@minrk minrk changed the title [WIP] NotebookApp.websocket_compression_options config NotebookApp.websocket_compression_options config May 25, 2017
@minrk
Copy link
Member Author

minrk commented May 25, 2017

@takluyver no, sorry, I should have taken WIP off a while back.

@takluyver takluyver merged commit f0e27a9 into jupyter:master May 25, 2017
@maartenbreddels
Copy link
Contributor

great 🎉

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance issue due to websocket compression
5 participants