Skip to content

Update ipython and ipykernel versions in environment.yml - #29

Merged
sean-morris merged 1 commit into
mainfrom
ipython-ipykernel-update
Jul 20, 2026
Merged

Update ipython and ipykernel versions in environment.yml#29
sean-morris merged 1 commit into
mainfrom
ipython-ipykernel-update

Conversation

@sean-morris

Copy link
Copy Markdown
Contributor

The older versions ran each notebook cell in a cleared context, which resets numpy 2 print options for cell.

The problem surfaced when using datascience and numpy packages in the same notebook. The clearing of context cleared datascience's np.set_printoptions(legacy='1.13') which set up numpy to start using it's latest print options (e.g. np.True_) and consequently broke our tests when we use otter grade.

The newer versions no longer reset per-cell, so datascience's legacy setting persists and notebook output matches what autograder seeds expect and consequently CI will match the grading servers behavior

The older versions ran each notebook cell in a cleared context, which resets numpy 2 print options for cell. The problem surfaced when using datascience and numpy packages in the same notebook. The clearing of context cleared datascience's np.set_printoptions(legacy='1.13') which set up numpy to start using it's latest print options (e.g. np.True_) and consequently broke our tests when we use otter grade. The newer versions no longer reset per-cell, so datascience's legacy setting persists and notebook output matches what autograder seeds expect and consequently CI will match the grading servers behavior
@sean-morris
sean-morris merged commit cf1167e into mainJul 20, 2026
2 checks passed
@sean-morris
sean-morris deleted the ipython-ipykernel-update branch July 20, 2026 19:43
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@sean-morris@shaneknapp