Skip to main content
Answer

Feasibility of Adding Shap Library to Pyodide in Cognite Jupyter Notebooks

  • November 27, 2024
  • 1 reply
  • 39 views

Hugo Lopes
Seasoned

Hi everyone,

I’m exploring the possibility of using the Shap library for model interpretability in Cognite Jupyter Notebooks, but I understand that Pyodide has limitations with packages requiring native libraries. According to the Pyodide FAQ, such packages may not be supported.

Would it still be feasible to include Shap, or is this limitation a blocker? If it’s not possible, are there any recommended workarounds, such as using a different package?

Thanks for any guidance or insights!

Best regards,

Best answer by Anders Hafreager

Hi!

It seems like the Shap library uses Cuda or other compiled languages and this will not be possible to use in Pyodide unfortunately. No workarounds for this package.

1 reply

Anders Hafreager
Practitioner

Hi!

It seems like the Shap library uses Cuda or other compiled languages and this will not be possible to use in Pyodide unfortunately. No workarounds for this package.