-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accidentally deleted a map(desktop) in jupyter notebook. HELP! #3631
Comments
They are probably in your .Trash folder. Depending on your OS, you'll find that in different locations. I believe that jupyter notebook uses this library: https://pypi.org/project/Send2Trash/ so you can check the details to see where it went. |
Hi, My apologies for this probably dumb answer. |
No problem... we all start somewhere! You don't need to install Send2Trash as it is already on your system. If you knew Python, you could look at the details of where it put your files. What operating system on you using? If you are on Linux, your files might be here: ~/.local/share/Trash/files/ If you are on Mac or Linux, you could do this at the terminal command line: find ~/ | grep Trash |
Hi, thank for your understanding. |
I haven't used Windows since about 1995. But googling some key words gives: Here's how to get the Recycle Bin on your desktop in Windows 10:
|
Thank you for your reply. Thanks in advance |
I'm pretty sure that Jupyter will not delete the files, but moves them to the system Recycle bin if possible. Deleting entire directories was not added until after the "send to trash" feature was added. |
Apparently they do delete files or folders directly.. The space on my disk went from 50gb to 100gb directly after , hence my request to recover this.. I cannot imagine I am the first one that has encountered this .. |
What version of Jupyter notebook do you have? In a command prompt, run What does Python give you for But if the free disk space has increased as you say, it has probably somehow bypassed any kind of trash. I'd like to figure out how that happened, but for your files probably the only chance is to try some other 'undelete' tools. I don't know any to recommend, though. |
@hsoft do you know of any conditions where send2trash might really delete a directory instead of putting it in trash? |
Hi takluyver, |
On windows? It's been a long long while since I touched anything related to windows. I seem to remember that in some cases, Windows would offer to delete a file directly when it couldn't send it to trash (files over a network share) but IIRC, send2trash would just fail to process this kind of file. |
Hence, no solution whatsoever? |
If 50 GB of disk space has become free and recovery tools aren't working, I'm pretty sure that data is gone. The only thing I can suggest is to try a different recovery tool; maybe there are different techniques they can use, and some other tool will be able to recover some of your files. What I'm still trying to work out is how this could happen. send2trash seems to be doing a 'delete' file operation and setting the
The second question and this linked codeguru thread mentions a few possible ways around this, none of them great:
I'm really surprised that Windows doesn't appear to have any convenient API to trash a file but error out if it's not possible to move it to the recycle bin. 😕 |
Thanks for your reply, Joking aside, I need my folders back! |
Sorry. The technical details are me trying to figure out what happened. The summary is:
Jupyter is a programming tool, and the default assumption for programmers is that if you tell the computer to do something, it does it. Always check what's in a folder before deleting it! |
Thank you for your elaborated answer. |
Maybe there is a way I can recover a parts (few gigabytes) of what I lost? |
It appears that the Windows backend of send2trash can't guarantee that files won't actually be deleted. There are some hints that this happens in particular when you delete a lot of data at once. So this returns to refusing to delete folders unless they're empty (or contain only ipynb checkpoints). Closes jupytergh-3631
What is new @Atero? |
I had committed the same mistake but all the files ended up in my recycle bin. My problem was solved after I restored everything from the recyclebin. I am using Windows 10 32-bit. |
The same thing happened with me today, I deleted my desktop folder. |
Hi all, please let me know if data can recover from python. same happened with me |
Hi there, Can anyone help me. I accidentally delete everything from my computer using Jupyter. There are so many important folders that I have deleted. My whole PhD thesis. My all certification work. |
I'm going to summarise the available information about this, to the best of my knowledge.
That's about all the information I can give anyone. |
One more thing:
|
I may have accidentally deleted some files as well, however I am on Mac and am using Jupyter Notebook version 6.0.3. Where would I look or are they still permanently gone? |
Hi all,
I recently started to use python with jupyter notebook.
As I am not familiar with Python at all, I made a terrible mistake last night.
As you can see from the screenshot, I deleted a map - my desktop - as I wanted to have a better overview, but apparently this software/ program has the power to delete all my files on my desktop ?? And it is not in the bin neither, it was deleted directly !
Naïve as I am I never made a backup from my files on my desktop and consequently everything is gone..
I tried to recover my files through EaseUS Data Recovery wizard and Stellar Phoenix windows data recovery and it manages to find the files, though all of them (jpeg, videos, excel, ppt, ..) are 0kb hence I cannot recover them.
I am really upset and have no clue how I can recover everything..
I would really appreciate help !!
Thanks,
A
The text was updated successfully, but these errors were encountered: