Description
I created a Conda environment based on the spec "pandas-profiling=2 prompt_toolkit=2 dataprep".
When I load a notebook from this environment, I get the error below from handlers.py that indicates that a method, is_closing(), doesn't exist on the object stored in the ws_connection attribute. I tracked the cause down to the dataprep module in the environment forcing a load of tornado=5.0.2. This is an acceptable version for notebook according to the build dependencies, but the required method doesn't exist on the WebsocketProtocol13 class in that version of tornado. I haven't researched extensively when it was added, but it's definitely there in the 6.1 version.
My recommendation is to update the required version of tornado to 6.X or otherwise eliminate the dependency on this method.
TRACEBACK:
Traceback (most recent call last):
File "c:\Miniconda\envs\dataprep\lib\site-packages\tornado\web.py", line 1499, in _stack_context_handle_exception
raise_exc_info((type, value, traceback))
File "", line 4, in raise_exc_info
File "c:\Miniconda\envs\dataprep\lib\site-packages\tornado\stack_context.py", line 315, in wrapped
ret = fn(*args, **kwargs)
File "c:\Miniconda\envs\dataprep\lib\site-packages\notebook\services\kernels\handlers.py", line 207, in nudge
if self.ws_connection is None or self.ws_connection.is_closing():
AttributeError: 'WebSocketProtocol13' object has no attribute 'is_closing'