diff --git a/jupyter_console/ptshell.py b/jupyter_console/ptshell.py index 31f424d..08f0342 100644 --- a/jupyter_console/ptshell.py +++ b/jupyter_console/ptshell.py @@ -673,7 +673,7 @@ def mainloop(self): # wish to include external content tasks.append(self.handle_external_iopub(loop=loop)) - main_task = asyncio.wait(tasks, loop=loop, return_when=asyncio.FIRST_COMPLETED) + main_task = asyncio.wait(tasks, return_when=asyncio.FIRST_COMPLETED) _, pending = loop.run_until_complete(main_task) for task in pending: