File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -326,17 +326,23 @@ <h1 class="mb-4">Datalab API WASM Plugin Template</h1>
326326 await pyodide . runPythonAsync ( `
327327 import micropip
328328 try:
329- await micropip.install('datalab-api')
329+ await micropip.install('datalab-api >= 0.2.8 ')
330330 print("datalab-api package installed successfully!")
331331 datalab_package_loaded = True
332+ datalab_package_exc = None
332333 except Exception as e:
333334 print(f"Could not install datalab-api package: {str(e)}")
334335 print("Continuing without datalab-api...")
335336 datalab_package_loaded = False
337+ datalab_package_exc = str(e)
336338 ` ) ;
337339
338340 // Check if package was loaded
339341 const packageLoaded = pyodide . runPython ( 'datalab_package_loaded' ) ;
342+ if ( ! packageLoaded ) {
343+ let packageLoadError = pyodide . runPython ( 'datalab_package_exc' ) ;
344+ logToConsole ( 'Failed to install datalab-api package: ' + packageLoadError , 'error' ) ;
345+ }
340346 updatePackageStatus ( packageLoaded ) ;
341347
342348 if ( packageLoaded ) {
You can’t perform that action at this time.
0 commit comments