Skip to content

Upgrade to numpy 2 on windows #305

Closed

Description

@rcpeene

The metadata config shows
numpy<2.0; platform_system == "Windows"

My project, the OpenScope databook, has a notebook demonstrating the use of CEBRA-time on an Allen Institute dataset in an effort to disseminate analytical tools in the field of neuroscience. @rly wrote AllenInstitute/openscope_databook#482 on the databook repo and makes a good case for why upgrading to numpy 2 is desirable, as the field continues to move versions. numpy<2 does not work with Python 3.13.

Cebra seems to be the thing pinning my project to numpy<2 and therefore python <3.13

Activity

  1. stes commented on Jun 24, 2026

    @stes
    Member

    Hi @rcpeene , this should only be the case on Windows. On all other platforms, we use the latest numpy version (up to the current #303 issue for which we limit to <2.5 currently).

    I assume you are using windows then?

  2. stes commented on Jun 24, 2026

    @stes
    Member

    I started a little experiment if this cleanly upgrades: #306

  3. rcpeene commented on Jun 24, 2026

    @rcpeene
    Author

    I personally am using windows, but in the interest of usability and reproducibility, I try to take pains to make the databook environment easy to set up on all major platforms; the project is less about yielding particular output with cebra and more about providing an educational resource showing how anyone can use tools such as cebra on various platforms.

  4. stes commented on Jun 24, 2026

    @stes
    Member

    Makes sense; from a first look, it seems like the numpy 2 issues on windows we saw before are fixed by now. I will do one additional clean build, then we can merge this pretty soon.

    Thanks for raising this, @rcpeene !

  5. self-assigned this
    on Jun 24, 2026
  6. stes commented on Jun 25, 2026

    @stes
    Member

    @rcpeene should be fixed -- if you get the chance, happy for feedback if your notebook runs on windows with the latest version of main without issues!

  7. rcpeene commented on Jul 7, 2026

    @rcpeene
    Author

    Confirmed that my CEBRA notebook works now in my windows environment.

  8. stes commented on Jul 7, 2026

    @stes
    Member

    Thanks for testing and getting back here, @rcpeene . Very good to hear!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions