public JupyterRequestContextHandler(IKernel kernel)
        {
            var scheduler = new EventLoopScheduler(t =>
            {
                var thread = new Thread(t)
                {
                    IsBackground = true, Name = "MessagePump"
                };
                return(thread);
            });

            _executeHandler    = new ExecuteRequestHandler(kernel, scheduler);
            _completeHandler   = new CompleteRequestHandler(kernel, scheduler);
            _interruptHandler  = new InterruptRequestHandler(kernel, scheduler);
            _isCompleteHandler = new IsCompleteRequestHandler(kernel, scheduler);
            _shutdownHandler   = new ShutdownRequestHandler(kernel, scheduler);
        }