jupyter / jupyter/notebook

Moving a large folder makes UI stuck and not loading

Open
#5,202 1 comment 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

Any time I move a large folder with many files through the UI, and the disk IOPS gets higher, the UI dies and impossible to load it. Why doesn't "move" files operation use a separate process or thread?

It seems to block the main thread and notebook can't be used until files movement is completed, took about 7-8 minutes now, until folder copy completed, and it was impossible to load the UI, but copy can be both restricted on resources, lower "niceness" for CPU load, and be in the background to not interfere with the UI webserver thread.

Any ideas how to fix this? Or it's by design?

Here is for example the IOPS rate and the UI was dead all the time:
![image](https://user-images.githubusercontent.com/9369080/73794271-eb643e00-475c-11ea-814f-d588a4819b69.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue through the UI while moving a large folder and trace the move operation that blocks the notebook UI. Done should mean the UI remains usable during large folder moves, with the operation isolated or resource-limited as appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.