-
Notifications
You must be signed in to change notification settings - Fork 150
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
WebsocketHandler.get is async #119
Conversation
As of Tornado v6.0.2 some methods were converted to be async/await capable. See commit: tornadoweb/tornado@e69becb
How could we deal with being compatible with Tornado 5 and 6 at the same time? I was thinking https://www.tornadoweb.org/en/stable/gen.html#tornado.gen.maybe_future but that is deprecated. So maybe https://docs.python.org/3/library/inspect.html#inspect.isawaitable is the right thing to use if we should |
Got it. Will make that change tomorrow. |
Check whether or not the result of `WebSocketHandler.get` is awaitable or not before awaiting.
@betatim done! |
Recently the notebook server swapped out tornado's |
@ian-r-rose does this problem show up in other places in this repo? I think it makes sense to use that if there's more locations where we need to address the backward compatibility. |
@rmorshea I'm not sure. This seems to fix the immediate problem, but there may be more lurking somewhere. I confess I don't have the best grasp of websockets. |
@ian-r-rose neither do I. @betatim actually debugged #39 I just made the PR. |
I don't really know either. Having looked at the implementation of Does this mean that jupyter-server-proxy will require a brand new notebook package in order to work (if we use |
@betatim That's a good point. Perhaps we should try to import |
@betatim used a |
Binder was not working due to a websocket problem with the Jupyter proxy server. See the patch here: jupyterhub/jupyter-server-proxy#119 Also added documentation for the examples and added links to binder from the README and docs.
Binder was not working due to a websocket problem with the Jupyter proxy server. See the patch here: jupyterhub/jupyter-server-proxy#119 Also added documentation for the examples and added links to binder from the README and docs.
* add support for binder * try custom websocket patch * Get binder working + docs Binder was not working due to a websocket problem with the Jupyter proxy server. See the patch here: jupyterhub/jupyter-server-proxy#119 Also added documentation for the examples and added links to binder from the README and docs. * be sure users click the image * update lock file
Merged. Thanks for this! |
As of Tornado v6.0.2 some methods were converted to be async/await capable. See commit:
tornadoweb/tornado@e69becb
Closes: #39