File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,37 @@ export class ManagePythonEnvironmentDialog {
137
137
launchTerminalInDirectory ( envPath , activateCommand ) ;
138
138
}
139
139
} ,
140
+ {
141
+ label : 'Launch JupyterLab Web App' ,
142
+ click : async ( ) => {
143
+ const { filePaths } = await dialog . showOpenDialog ( {
144
+ title : 'Choose working directory' ,
145
+ properties : [
146
+ 'showHiddenFiles' ,
147
+ 'noResolveAliases' ,
148
+ 'openDirectory' ,
149
+ 'createDirectory'
150
+ ] ,
151
+ buttonLabel : 'Launch'
152
+ } ) ;
153
+
154
+ if ( filePaths . length === 0 ) {
155
+ return ;
156
+ }
157
+
158
+ const workingDir = filePaths [ 0 ] ;
159
+
160
+ const condaPath = getCondaPath ( ) || '' ;
161
+ const condaEnvPath = condaEnvPathForCondaExePath ( condaPath ) ;
162
+ let launchCommand = createCommandScriptInEnv (
163
+ envPath ,
164
+ condaEnvPath ,
165
+ `jupyter lab --notebook-dir="${ workingDir } "`
166
+ ) ;
167
+
168
+ launchTerminalInDirectory ( envPath , launchCommand ) ;
169
+ }
170
+ } ,
140
171
{
141
172
label : openInExplorerLabel ,
142
173
click : ( ) => {
You can’t perform that action at this time.
0 commit comments