-
Notifications
You must be signed in to change notification settings - Fork 294
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
When the remote server is actually 'localhost' we can behave better ... #8527
Changes from all commits
ba1abb9
b2351e2
5bfa8c9
a0474f1
be4713c
8d886fa
59c1753
8cc9891
48eacd6
d1a707a
ad6d29f
b5a49b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Use the appropriate directory for a notebook if remoting to 'localhost' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Support intellisense after connecting to a remote server (defaults to active python interpreter) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,14 +59,23 @@ export class JupyterKernelService { | |
const token = wrapCancellationTokens(cancelToken, tokenSource.token); | ||
|
||
// If we have an interpreter, make sure it has the correct dependencies installed | ||
if (kernel.kind !== 'connectToLiveKernel' && kernel.interpreter) { | ||
await this.kernelDependencyService.installMissingDependencies(resource, kernel.interpreter, ui, token); | ||
if ( | ||
kernel.kind !== 'connectToLiveKernel' && | ||
kernel.interpreter && | ||
kernel.kind !== 'startUsingRemoteKernelSpec' | ||
) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shoot even more, yup, i think i know what would have happened... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No these are my fault. A remote kernel couldn't have an interpreter until my change. So your old if statement would have worked. |
||
await this.kernelDependencyService.installMissingDependencies(resource, kernel, ui, token); | ||
} | ||
|
||
var specFile: string | undefined = undefined; | ||
|
||
// If the spec file doesn't exist or is not defined, we need to register this kernel | ||
if (kernel.kind !== 'connectToLiveKernel' && kernel.kernelSpec && kernel.interpreter) { | ||
if ( | ||
kernel.kind !== 'connectToLiveKernel' && | ||
kernel.kind !== 'startUsingRemoteKernelSpec' && | ||
kernel.kernelSpec && | ||
kernel.interpreter | ||
) { | ||
// Default to the kernel spec file. | ||
specFile = kernel.kernelSpec.specFile; | ||
|
||
|
@@ -86,7 +95,13 @@ export class JupyterKernelService { | |
} | ||
|
||
// Update the kernel environment to use the interpreter's latest | ||
if (kernel.kind !== 'connectToLiveKernel' && kernel.kernelSpec && kernel.interpreter && specFile) { | ||
if ( | ||
kernel.kind !== 'connectToLiveKernel' && | ||
kernel.kind !== 'startUsingRemoteKernelSpec' && | ||
kernel.kernelSpec && | ||
kernel.interpreter && | ||
specFile | ||
) { | ||
traceInfoIfCI( | ||
`updateKernelEnvironment ${kernel.interpreter.displayName}, ${getDisplayPath( | ||
kernel.interpreter.path | ||
|
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.
Oops,