Skip to content

Commit

Permalink
Remove use of _add_task_factory
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 14, 2022
1 parent 3c6ff3b commit 6a4333b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions panel/io/jupyter_server_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
from .resources import (
DIST_DIR, ERROR_TEMPLATE, Resources, _env,
)
from .server import _add_task_factory, server_html_page_for_session
from .server import server_html_page_for_session
from .state import set_curdoc, state

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -218,10 +218,6 @@ def _create_server_session(self) -> ServerSession:
app.initialize_document(doc)

loop = tornado.ioloop.IOLoop.current()
try:
_add_task_factory(loop.asyncio_loop) # type: ignore
except Exception:
pass
session = ServerSession(self.session_id, doc, io_loop=loop, token=self.token)
session_context._set_session(session)
return session
Expand Down

0 comments on commit 6a4333b

Please sign in to comment.