Solved

Python with puodide

  • 12 October 2023
  • 6 replies
  • 84 views

Badge +2

I am trying to install some python packages that do not appear to have a wheel which turns into a problem because , as far as I know, pyodide is not able to install packages without a wheel. Here is an example of an error I am receiving  - “Can't find a pure Python 3 wheel for 'psutil==5.9.5'.”-

How can I address this issue in Jupyter Notebook and streamlit? Is there a workaround? Is there a way to use a different kernel instead of pyodide?

I am not facing this issue with CDF functions. How does CDF functions environment differ from Jupyter Notebook and streamlit?

icon

Best answer by Murad Sæter 13 October 2023, 11:01

View original

6 replies

Userlevel 2

Jypyter notebooks in CDF is running inside your browser and is based on pyodide. There is a subset of packages that works with pyodide. psutil seems like something wouldn’t work here.

There workaround is to install jupyter / python locally on your computer.

CDF functions runs in a normal python environment, so that’s different.

Userlevel 3

Hi @Diana Chimnaz Johan, did the above help you?

Badge +2

Hello,

It helped to confirm the limitation of the jupyter notebook and streamlit since both use pyodide. I was wondering if there is a plan to lift that limitation? 

Thanks,

Diana

Userlevel 2

We don’t have any plans to deploy jupyter or streamlit outside pyodide in the Cognite platform. 

What are you trying to do that does not work in pyodide?

Userlevel 4
Badge +2

Hi @Diana Chimnaz Johan,

We are following up to see whether you're satisfied with the responses you've received.

Best regards,
Dilini  

Badge +2

Hi Dilni,

Yes, I got all the answers I needed.

Thanks,

Diana

Reply