mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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 nls from 'vscode-nls';
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
import { EOL } from 'os';
|
||||||
import * as utils from '../common/utils';
|
import * as utils from '../common/utils';
|
||||||
const localize = nls.loadMessageBundle();
|
const localize = nls.loadMessageBundle();
|
||||||
|
|
||||||
@@ -266,6 +267,11 @@ export class JupyterSession implements nb.ISession {
|
|||||||
code: doNotCallChangeEndpointParams
|
code: doNotCallChangeEndpointParams
|
||||||
}, true);
|
}, true);
|
||||||
await future.done;
|
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