Skip to content

Support older IPython versions for cuml.accel magics#7675

Merged
rapids-bot[bot] merged 6 commits intorapidsai:release/26.02from
jcrist:support-old-ipython
Jan 16, 2026
Merged

Support older IPython versions for cuml.accel magics#7675
rapids-bot[bot] merged 6 commits intorapidsai:release/26.02from
jcrist:support-old-ipython

Conversation

@jcrist
Copy link
Copy Markdown
Member

@jcrist jcrist commented Jan 13, 2026

This adds support for older IPython versions to cuml.accel's IPython magics. Previously we were using a decorator added in IPython 8.10 (released Feb 2023)

This also adds IPython as a test dependency - previously we were erroneously not running these tests in CI. We test against IPython versions >= 7.34.0 (released May 2022), which is the oldest version used by some cloud providers, but with this change likely support significantly older versions as well. Since it's not a runtime dependency except for the magics (which by definition will have IPython installed), I think adding a test dep of ipython >= 7.34.0 is sufficient. We also now branch out IPython versions in our test matrix, so some builds will test on the older versions to ensure they work.

@jcrist jcrist self-assigned this Jan 13, 2026
@jcrist jcrist requested a review from a team as a code owner January 13, 2026 19:10
@jcrist jcrist added the improvement Improvement / enhancement to an existing function label Jan 13, 2026
@jcrist jcrist requested a review from a team as a code owner January 13, 2026 19:10
@jcrist jcrist added the non-breaking Non-breaking change label Jan 13, 2026
@jcrist jcrist requested a review from jameslamb January 13, 2026 19:10
@jcrist jcrist added the cuml-accel Issues related to cuml.accel label Jan 13, 2026
@jcrist jcrist requested a review from csadorf January 13, 2026 19:10
@github-actions github-actions Bot added conda conda issue Cython / Python Cython or Python issue labels Jan 13, 2026
Copy link
Copy Markdown
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me based on the PR description, thank you.

@csadorf
Copy link
Copy Markdown
Contributor

csadorf commented Jan 15, 2026

@jcrist This is failing with

error    libmamba Could not solve for environment specs
    The following package could not be installed
    └─ ipython ==7.34.0 * does not exist (perhaps a typo or a missing channel).

Can you have a look, please?

This guards our import of `output_can_be_silenced` (added in IPython
8.10.0), allowing us to support older IPython versions. This is mainly
relevant to some cloudproviders running on very old IPython.
This adds IPython as a test dependency - previously we were erroneously
not running these tests in CI. Also splits out the version used in the
CI matrix so we can test against older IPython to ensure everything
works.
Easier to skip the test than modify it to check for different output on
very old IPython versions.
@jcrist jcrist force-pushed the support-old-ipython branch from 1c17934 to 95dec47 Compare January 16, 2026 17:52
@jcrist jcrist changed the base branch from main to release/26.02 January 16, 2026 17:52
@jcrist
Copy link
Copy Markdown
Member Author

jcrist commented Jan 16, 2026

7.34.0 isn't on conda-forge for unknown reasons, I've adjusted the lower bound to 7.32.0 instead. Also had a slight test fixup to work across ipython versions - should be good-to-go now.

@jcrist
Copy link
Copy Markdown
Member Author

jcrist commented Jan 16, 2026

/merge

@rapids-bot rapids-bot Bot merged commit 8048ffc into rapidsai:release/26.02 Jan 16, 2026
115 of 117 checks passed
@jcrist jcrist deleted the support-old-ipython branch January 16, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conda conda issue cuml-accel Issues related to cuml.accel Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants