File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
pyodide-kernel-extension/src Expand file tree Collapse file tree 3 files changed +4
-7
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 2
2
export * as allJSONUrl from '../pypi/all.json' ;
3
3
export * as ipykernelWheelUrl from '../pypi/ipykernel-6.9.2-py3-none-any.whl' ;
4
4
export * as pipliteWheelUrl from '../pypi/piplite-0.5.0-py3-none-any.whl' ;
5
- export * as pipliteWheelUrl1 from '../pypi/piplite-0.5.0b0-py3-none-any.whl' ;
6
5
export * as pyodide_kernelWheelUrl from '../pypi/pyodide_kernel-0.5.0-py3-none-any.whl' ;
7
- export * as pyodide_kernelWheelUrl1 from '../pypi/pyodide_kernel-0.5.0b0-py3-none-any.whl' ;
8
6
export * as widgetsnbextensionWheelUrl from '../pypi/widgetsnbextension-3.6.999-py3-none-any.whl' ;
9
7
export * as widgetsnbextensionWheelUrl1 from '../pypi/widgetsnbextension-4.0.999-py3-none-any.whl' ;
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