Remove preview flag for Configure Python wizard. (#11813)

This commit is contained in:
Cory Rivera
2020-08-14 12:36:40 -07:00
committed by GitHub
parent 1ee4af52b4
commit ff2d2d0339
5 changed files with 25 additions and 439 deletions

View File

@@ -237,11 +237,7 @@ export class JupyterSession implements nb.ISession {
public async changeKernel(kernelInfo: nb.IKernelSpec): Promise<nb.IKernel> {
if (this._installation) {
try {
if (this._installation.previewFeaturesEnabled) {
await this._installation.promptForPythonInstall(kernelInfo.display_name);
} else {
await this._installation.promptForPackageUpgrade(kernelInfo.display_name);
}
await this._installation.promptForPythonInstall(kernelInfo.display_name);
} catch (err) {
// Have to swallow the error here to prevent hangs when changing back to the old kernel.
console.error(err.toString());