File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
pyodide-kernel-extension/src Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ const kernel: JupyterLiteServerPlugin<void> = {
59
59
const disablePyPIFallback = ! ! config . disablePyPIFallback ;
60
60
const loadPyodideOptions = config . loadPyodideOptions || { } ;
61
61
const extraPackagesAndIndexes = config . extraPackagesAndIndexes || [ ] ;
62
- console . log ( 'extraPackagesAndIndexes' , extraPackagesAndIndexes , config ) ;
63
62
64
63
for ( const [ key , value ] of Object . entries ( loadPyodideOptions ) ) {
65
64
if ( key . endsWith ( 'URL' ) && typeof value === 'string' ) {
Original file line number Diff line number Diff line change @@ -105,14 +105,14 @@ export class PyodideRemoteKernel {
105
105
const { extraPackagesAndIndexes } = this . _options as IPyodideWorkerKernel . IOptions ;
106
106
if ( extraPackagesAndIndexes . length > 0 ) {
107
107
// note that here pkg can be a package name or a wheel url
108
- for ( let { packages : pkgs , indexes } of extraPackagesAndIndexes ) {
108
+ for ( const { packages : pkgs , indexes } of extraPackagesAndIndexes ) {
109
109
let installCmd : string ;
110
110
if ( indexes === null ) {
111
- installCmd = `import micropip\nawait micropip .install(${ JSON . stringify ( pkgs ) } , keep_going=True)` ;
111
+ installCmd = `await piplite .install(${ JSON . stringify ( pkgs ) } , keep_going=True)` ;
112
112
} else {
113
- installCmd = `import micropip\nawait micropip .install(${ JSON . stringify ( pkgs ) } , index_urls=${ JSON . stringify ( indexes ) } , keep_going=True)` ;
113
+ installCmd = `await piplite .install(${ JSON . stringify ( pkgs ) } , index_urls=${ JSON . stringify ( indexes ) } , keep_going=True)` ;
114
114
}
115
- console . info ( 'installCmd ' , installCmd ) ;
115
+ console . info ( 'installing via cmd: ' , installCmd ) ;
116
116
try {
117
117
await this . _pyodide . runPythonAsync ( installCmd ) ;
118
118
console . info ( `Package ${ pkgs } Installed successfully` ) ;
You can’t perform that action at this time.
0 commit comments