-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify starting how we start local Jupyter, remote Jupyter and raw kernels #13445
Conversation
7b98f23
to
3cb7d1a
Compare
const kernelConnection = options.kernelConnection; | ||
const isLocal = isLocalConnection(kernelConnection); | ||
|
||
if (this.rawKernelSessionCreator?.isSupported && isLocal) { | ||
return this.rawKernelSessionCreator.create( | ||
return this.createRawKernelSession(this.rawKernelSessionCreator, options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: no need to pass the member rawKernelSessionCreator
to a private method
NotebookCreationOptions | ||
} from '../../types'; | ||
import { Cancellation } from '../../../platform/common/cancellation'; | ||
import { ConnectNotebookProviderOptions, IJupyterConnection } from '../../types'; | ||
import { IJupyterNotebookProvider, IJupyterServerProvider } from '../types'; | ||
|
||
// When the NotebookProvider looks to create a notebook it uses this class to create a Jupyter notebook | ||
@injectable() | ||
export class JupyterNotebookProvider implements IJupyterNotebookProvider { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could other classes just use the jupyterServerConnector
or just the ServerProvider
directly so that this class can be dropped? It's not providing notebooks anymore as its name suggests.
Part of #12832, #12831
Before (steps to start a kernel)
After (we now have clear and distinct classes with specific responsibilities)