Use python3 as the default python version in Spark sessions. (#7353)

This commit is contained in:
Cory Rivera
2019-09-25 11:23:39 -07:00
committed by GitHub
parent a0e31fc723
commit 79d0239362

View File

@@ -9,6 +9,7 @@ import * as fs from 'fs-extra';
import * as nls from 'vscode-nls';
import * as vscode from 'vscode';
import * as path from 'path';
import { EOL } from 'os';
import * as utils from '../common/utils';
const localize = nls.loadMessageBundle();
@@ -266,6 +267,11 @@ export class JupyterSession implements nb.ISession {
code: doNotCallChangeEndpointParams
}, true);
await future.done;
future = this.sessionImpl.kernel.requestExecute({
code: `%%configure -f${EOL}{"conf": {"spark.pyspark.python": "python3"}}`
}, true);
await future.done;
}
}