Added hard coded pySpark3 kernel for analyze notebook. Good to know and fix it in time. (#4009)

This commit is contained in:
Yurong He
2019-02-11 17:21:08 -08:00
committed by GitHub
parent 67f9a7f5e4
commit 5f198dba08

View File

@@ -113,7 +113,13 @@ async function analyzeNotebook(oeContext?: sqlops.ObjectExplorerContext): Promis
let editor = await sqlops.nb.showNotebookDocument(untitledUri, {
connectionId: oeContext ? oeContext.connectionProfile.id : '',
providerId: JUPYTER_NOTEBOOK_PROVIDER
providerId: JUPYTER_NOTEBOOK_PROVIDER,
preview: false,
defaultKernel: {
name: 'pyspark3kernel',
display_name: 'PySpark3',
language: 'python'
}
});
if (oeContext && oeContext.nodeInfo && oeContext.nodeInfo.nodePath) {
// Get the file path after '/HDFS'