public JupyterRequestContextHandler(PackageRegistry packageRegistry)
        {
            _executeHandler = new ExecuteRequestHandler(new CSharpRepl());

            if (packageRegistry == null)
            {
                throw new ArgumentNullException(nameof(packageRegistry));
            }
            _server = new WorkspaceServerMultiplexer(packageRegistry);
        }
Exemplo n.º 2
0
        public JupyterRequestContextHandler(
            PackageRegistry packageRegistry,
            IKernel kernel)
        {
            _executeHandler  = new ExecuteRequestHandler(kernel);
            _completeHandler = new CompleteRequestHandler(kernel);

            if (packageRegistry == null)
            {
                throw new ArgumentNullException(nameof(packageRegistry));
            }
            _server = new WorkspaceServerMultiplexer(packageRegistry);
        }