jupyter / jupyter/notebook

Not fully clear died notebooks files in runtime_dir

Open
#5,302 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

After not good closing of running jupyter notebook, and after new launch some files cleared like nbserver-(.+).json. But in this folder also store files like nbserver-(.+)-open.html and kernel-(.+).json.

My opinion is that when deletes nbserver-(.+).json also should delete nbserver-(.+)-open.html
Or if nbserver-(.+)-open.html has no pair nbserver-(.+).json

For files kernel-(.+).json I don't find where it checks that file is not needed.

Contributor guide

Open the contributing guide

Research direction

Start by locating the runtime_dir cleanup logic for nbserver-(.+).json, nbserver-(.+)-open.html, and kernel-(.+).json files. Trace when each file is considered unused and verify that orphaned files are handled consistently; done means stale runtime files are removed without affecting active notebook or kernel sessions.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.