diff --git a/src/Microsoft.DotNet.Interactive.Jupyter/ConnectJupyterKernelCommand.cs b/src/Microsoft.DotNet.Interactive.Jupyter/ConnectJupyterKernelCommand.cs index 06c7058ee5..d78d4f49f5 100644 --- a/src/Microsoft.DotNet.Interactive.Jupyter/ConnectJupyterKernelCommand.cs +++ b/src/Microsoft.DotNet.Interactive.Jupyter/ConnectJupyterKernelCommand.cs @@ -3,15 +3,12 @@ using Microsoft.DotNet.Interactive.Connection; using Microsoft.DotNet.Interactive.Jupyter.Connection; -using Microsoft.DotNet.Interactive.Jupyter.Http; -using Microsoft.DotNet.Interactive.Jupyter.ZMQ; using System; using System.Collections.Generic; using System.CommandLine; using System.CommandLine.Completions; using System.CommandLine.Invocation; using System.CommandLine.Parsing; -using System.Reactive.Disposables; using System.Threading.Tasks; namespace Microsoft.DotNet.Interactive.Jupyter; @@ -138,82 +135,4 @@ private int GetParseResultHash(ParseResult parseResult) return (values).GetHashCode(); } -} - -public sealed class JupyterLocalKernelConnectionOptions : IJupyterKernelConnectionOptions -{ - private static JupyterConnection _currentJupyterConnection; - - /// - /// Represents connection to the kernels in the current environment - /// - private static JupyterConnection CurrentConnection - { - get - { - _currentJupyterConnection ??= new(new JupyterKernelSpecModule()); - return _currentJupyterConnection; - } - } - - public IJupyterConnection GetConnection(ParseResult connectionOptionsParseResult) - { - return CurrentConnection; - } - - public IReadOnlyCollection