Fix #883 and #156

Closed
AS
9mo ago
+1105-724

This PR fixes:

  1. #883: AssertionError when using Starlette middleware by ensuring SSE handler is a raw ASGI app.
  2. #156: Jupyter Notebook logging by piping stderr and using a reader task.

CC @toughnoah @grll