Skip to content

Commit

Permalink
Don't run kernel if subapp
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Dec 16, 2024
1 parent 28a72bd commit ec6dc94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ipykernel/kernelapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,12 +733,12 @@ def initialize(self, argv=None):
def start(self) -> None:
"""Start the application."""
if self.subapp is not None:
self.subapp.start()
return self.subapp.start()
if self.poller is not None:
self.poller.start()
if self.kernel is not None:
backend = "trio" if self.trio_loop else "asyncio"
run(self.main, backend=backend)
backend = "trio" if self.trio_loop else "asyncio"
run(self.main, backend=backend)
return

async def _wait_to_enter_eventloop(self):
await self.kernel._eventloop_set.wait()
Expand Down

0 comments on commit ec6dc94

Please sign in to comment.