Same file name, Different Files (Different Content) Python 2.7 Jupyt

  • Thread starter WWGD
  • Start date
WWGD
Science Advisor
Gold Member
5,049
2,269

Summary:

Same file name for files with different content in VMWare. ????

Main Question or Discussion Point

So I have Python 2.7 ( Don't ask) installed in my VM.

Now I have two files named " Untitled 10" in my Jupyter notebook therein ( Notice the bottom cell in both files , named "Untitled 10" -- please see top of attachments -- which have different content in the "bottom-most" cell ); please see first two attachments. How can this happen? Doesn't the VM OS or something else prevent using the same name for different files?
 

Attachments

Answers and Replies

11,108
4,621
Some file systems allow for upper and lower case filenames like linux whereas others like macos preserve the casing but balk when you try to save one over the other.

In your case do you see two files in the os environment with the same name? Or will it overwrite the contents depending on which part of your session you decide to change.

Another possibility is the file is a kind of database saving the blocks at different locs in the file.
 
WWGD
Science Advisor
Gold Member
5,049
2,269
Some file systems allow for upper and lower case filenames like linux whereas others like macos preserve the casing but balk when you try to save one over the other.

In your case do you see two files in the os environment with the same name? Or will it overwrite the contents depending on which part of your session you decide to change.

Another possibility is the file is a kind of database saving the blocks at different locs in the file.
Ah, I am thinking I opened up two identical copies, had them both open but made different changes to each. I need to 2-check where the Python VM files are saved to see the file structure.
 
11,108
4,621
Yeah, I've done that disaster "waiting to happen" where you save the wrong copy to file.
 
rbelli1
Gold Member
904
328
I am thinking I opened up two identical copies, had them both open but made different changes to each.
In that case you will have only one file on disk at /notebooks/Downloads/Untitled 10.ipynb. The two "copies" are either just in memory separately or are copies/diffs in temporary files. The Untitled 10.ipynb file will have the contents of the last auto-saved tab (unless auto-save goes to the temporary files).

The structure of all of this is based on the server you have running at localhost:8888 and any code embedded in the served pages.

Doesn't the VM OS or something else prevent using the same name for different files?
Yes. The client OS is Windows 7 and you can't have two of the same file. This also applies to the host Windows 10 which is the same file system.

VMWare just deals in virtual hard drives so it imposes no restriction on the structure of the client file system.

BoB
 
WWGD
Science Advisor
Gold Member
5,049
2,269
In that case you will have only one file on disk at /notebooks/Downloads/Untitled 10.ipynb. The two "copies" are either just in memory separately or are copies/diffs in temporary files. The Untitled 10.ipynb file will have the contents of the last auto-saved tab (unless auto-save goes to the temporary files).

The structure of all of this is based on the server you have running at localhost:8888 and any code embedded in the served pages.



Yes. The client OS is Windows 7 and you can't have two of the same file. This also applies to the host Windows 10 which is the same file system.

VMWare just deals in virtual hard drives so it imposes no restriction on the structure of the client file system.

BoB
Thanks. I ( meaning win7) have a directory 'recent' for recently used files. Hope they will both be there -- or anywhere else. I will look for them by time stamp.
 
rbelli1
Gold Member
904
328
I ( meaning win7) have a directory 'recent' for recently used files.
That folder is just a bunch of shortcuts. If you have two files with the same name but different folder then the less recently opened one will get replaced in the recent files list. In any case it will not preserve any file contents.

BoB
 
WWGD
Science Advisor
Gold Member
5,049
2,269
Thanks again. One issue I was having is that in order to save the notebook in Anaconda Python 2.7 , I must provide a path for it and was not sure on what the path should be other than some obvious choices.
 

Related Threads for: Same file name, Different Files (Different Content) Python 2.7 Jupyt

  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
6
Views
35K
Replies
3
Views
2K
  • Last Post
Replies
10
Views
687
  • Last Post
Replies
3
Views
963
Replies
15
Views
4K
Top