I am trying to select multiple images to delete them and I see “Move to Trash” option is only available if I select one of the image and then all options. Directly if I select all options then it doesn’t show “Move to Trash”.It looks like an issue.I have attached the video link jupyter12
Can you specify what version?
I’m not seeing this be the case when I run a session launched from here (Version: 7.6.0a2). If I make a notebook in the root directory and then run the following code to make twenty-five files in a newly-generated directory, the ‘Move to trash’ button comes up if I select all of them using the topmost toggle from within the newly-generated directory in the Jupyter Dashboard GUI.
Code to make severakl images from a .ipynb file:
!mkdir test_imgs
for x in range(25):
!touch "test_imgs/x_{x}.jpg"
In other words, I can delete all the images in the directory when I am in directory itself in the Jupyter Dashboard. I don’t have to chose one of the files in the first place.
Maybe only occurs if you exceed a threshold of file numbers?
Maybe only on Windows? In a certain browser?
If you can pin it down so that it is reproducible, you could post it as an issue in the repo.
I am talking about the images inside a folder. I am saving some images inside a folder. My old code which was easy doesn’t support now but I found an alternate code which supports downloading of images from internet. The task was to delete the whole folder. When I select single image from the folder and then select the icon of the multiple images then-Move to trash is shown and if i select directly all images icon then-Move to trash is not shown. I have used the following code to download images from internet.
Your code is not runnable as you provided. (Compare that to my provided code block in my first reply. Hint: Note that I didn’t supply code as an image.)
As to your actual issue…
Please use my method to make image files and see if there is a difference? And/or try your code where I tried my test on a remote machine. ( I gave you another place to test things in my reply and asked you about your experience with that and you didn’t seem to try that or reference your experience with a more recent version?) It may be source of the files or size is involved? (My files had no real content.) Or maybe it is a permissions settings? Or maybe it is the length of the absolute path? As I described in my original reply, until you can make it reproducible in a shareable way, it’s an “on-my-computer” problem.
Hint: This guide will step you through how to make a post that is thorough and has a minimal reproducible example. Additional hint: I’ve described how to share code as formatted code blocks (see last paragraph) and there’s always gists at GitHub or other code sharing resources. Heck, you can even share an entire .ipynb file.
Additionally, if you cannot make this reproducible (or it was an old issue that was handled post-version 7.4 and you still want to continue to use the old 7.4 version), please consider how you could approach this differently. You can use commands to delete files of a specific type or entire directories easily enough using Python or other commands from in a notebook or on the command line.
