From a3877277a4066ee12d7f913b5ec7c1ac487993a1 Mon Sep 17 00:00:00 2001 From: chenchao Date: Fri, 25 Mar 2016 10:40:12 +0800 Subject: [PATCH] fix the bug that notebook websocket response can not compress --- notebook/base/zmqhandlers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/notebook/base/zmqhandlers.py b/notebook/base/zmqhandlers.py index 6a7b5bdcb..67b4b17fc 100644 --- a/notebook/base/zmqhandlers.py +++ b/notebook/base/zmqhandlers.py @@ -289,4 +289,7 @@ class AuthenticatedZMQStreamHandler(ZMQStreamHandler, IPythonHandler): def initialize(self): self.log.debug("Initializing websocket connection %s", self.request.path) self.session = Session(config=self.config) - + + def get_compression_options(self): + # use deflate compress websocket + return {}