astropy / astropy/astropy-workshop

Fits-Ascii notebooks might be able to close more gracefully

Open
#143 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jupyter Notebook
Stars
127
Forks
77
PR merge metrics
No merged PRs in 30d

Description

One of the participants hit "too many open files" limit. I instructed the person to exit notebook session and restart it, which wasn't ideal, but fixed the problem. A better way is for all the notebooks to handle file I/O with `with` statement, which hopefully will close the file pointers gracefully (except maybe during memmap situations).

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the workshop notebooks for file I/O and identify the paths that can leave file pointers open. Start by reviewing the notebook cells related to file access, then check how memmap cases differ. Done means the notebooks close ordinary file handles gracefully and the too-many-open-files problem is addressed without breaking memmap usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.