Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use latest pyodide kernel #54

Open
kp992 opened this issue Feb 2, 2025 · 3 comments
Open

How to use latest pyodide kernel #54

kp992 opened this issue Feb 2, 2025 · 3 comments

Comments

@kp992
Copy link

kp992 commented Feb 2, 2025

Hi,
I am using the template to run some of the lectures and the version of pandas is 1.5.3. I would like to upgrade pyodide to the latest version. How can I do that?

@Tom-van-Woudenberg
Copy link
Member

@DianaBanta ?

@rlanzafame
Copy link
Member

Hi @kp992 could you provide a link to the page where you are trying to do this so we can see better if we can help?
To be honest, most of us at TeachBooks use the sphinx-thebe extension "as-is" and adapt the packages that are imported and used by Pyodide, rather than changing Pyodide itself. You should be able to specify the pandas version without changing pyodide, for example with micropip, but it's hard to tell without an example for your use case. Here is the relevant micropip page:
https://micropip.pyodide.org/en/stable/project/usage.html

@kp992
Copy link
Author

kp992 commented Feb 9, 2025

https://kp992.github.io/intro-wasm-demo/main/inflation_history.html - I am trying to install pandas 2.1.4 using

%pip install "pandas==2.1.4"

which throws

ValueError: Can't find a pure Python 3 wheel for 'pandas==2.1.4'.
See: https://pyodide.org/en/stable/usage/faq.html#why-can-t-micropip-find-a-pure-python-wheel-for-a-package
You can use `await micropip.install(..., keep_going=True)` to get a list of all packages with missing wheels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants