mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Use python3 as the default python version in Spark sessions. (#7353)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user