コード例 #1
0
        private void Initialize(string kernelName, IKernelSpecManager specManager, IChannelFactory channelFactory, ILogger logger)
        {
            this.Logger                = logger ?? new DefaultLogger();
            this.HashHelper            = new HashHelper();
            this.SpecManager           = specManager ?? (new KernelSpecManager());
            this.Spec                  = SpecManager.GetKernelSpec(kernelName);
            this.ConnectionInformation = new KernelConnection();
            this.ChannelFactory        = channelFactory;

            this.Debug = false;
        }
コード例 #2
0
 /// <summary>
 /// Construct a manager for a given Jupyter kernel.  This version is typically used by unit tests.
 /// </summary>
 /// <param name="kernelName">The name of the Jupyter kernel to start and manager</param>
 /// <param name="specManager">The manager for the kernelspecs</param>
 /// <param name="channelFactory">A factory class to create ZMQ channels</param>
 public KernelManager(string kernelName, IKernelSpecManager specManager, IChannelFactory channelFactory, ILogger logger = null)
 {
     Initialize(kernelName, specManager, channelFactory, logger);
 }