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

Recent package updates breaking code? #249

Open
paselkin opened this issue Oct 17, 2024 · 3 comments
Open

Recent package updates breaking code? #249

paselkin opened this issue Oct 17, 2024 · 3 comments

Comments

@paselkin
Copy link

Hi folks,
I was wondering if there were recent (last month or so) updates to the jupyterhub environment that might affect how the xarray package works. We have a notebook that we'd been using previously that wasn't giving any errors, but now gives us an error about comparing str and int values whenever we try to print or display an xarray DataArray. Previously we'd been getting a summary of the DataArray.

@mcflugen
Copy link
Member

@paselkin Does the error you're seeing look anything like the error reported in landlab/landlab#2018?

If so, it's an incompatibility with Landlab v2.9.0 and numpy v2. If you think this could be the problem, will you please check what version of numpy and landlab is installed in your environment?

>>> import numpy as np
>>> np.__version__
'2.1.2'
>>> import landlab
>>> landlab.__version__
'2.9.0'

I have a fix for this issue ready to go. We just need to install it on our jupyterhub.

@paselkin
Copy link
Author

Thanks! Yes, it's the same error. We're using jupyterhub on jupyter.openearthscape.org; numpy is 1.26.2. Can I create my own virtual environment within jupyterhub so I can control package versions? Or do I just do something like "!pip install 'numpy>2.0'" in a jupyter instance? I'm not familiar enough with jupyterhub to know that...

@mdpiper
Copy link
Member

mdpiper commented Oct 18, 2024

@paselkin Landlab has been updated in the CSDMS kernel of the jupyter Hub. Let us know if this fixes the problem you're seeing.

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