I am having problems accessing my jupyter lab code files from different computers (home and office), Any help.
EK
I am having problems accessing my jupyter lab code files from different computers (home and office), Any help.
EK
jupyterlab is an editor for local files on your computer. So wherever it runs, it has access to the files on the same machine, like other text editors. If you want to edit the same files on multiple computers, you need to sync files yourself (e.g. via a sync tool, git, or a cloud storage service), or mount one from another.
Thank you for the input. My files are synced on G-drive. But when i am using my work computer, the only accessible and visible files are those created on my work computer. The same on my home computer. I read somewhere that i may need a VPN or change variable environment.
Thanks again
EK
Can you make a text file at home with a .txt
and edit it with a coding text editor, that isnât Jupyter, at work?
If so, then how? Youâd need to share some of that information with us.
If you cannot, then it isnât a Jupyter issue and you need to sort out things separate from Jupyter. At work I can see the same files in my Dropbox as at home and when I edit them at work using a coding text editor, Sublime Text in my case, I can later see the changes and make additional ones when I get home and open it with Sublime Text installed on my home machine. This is how productive syncing should work. Is this the case for you or not? And if not, what is different?
This is more or less what minrk was saying with, âjupyterlab is an editor for local files on your computer. So wherever it runs, it has access to the files on the same machine, like other text editors.â In your reply you offered no details beyond that you are using G-drive. We donât have access to your machine. (Please read âGetting good answers to your questionsâ as it may help you understand that you need to help us help you.)
For example, if you open Jupyter at work and run pwd
(for âprint working directoryâ) inside a notebook, where does it say it has access to? If you then copy and move your file to there can you access it with your Jupyter? If that works then what can you do with running %cd <directory_to_make_working_directory>
inside your notebook to change directories in your file hierarchy. Sometimes due to permissions settings you cannot see certain levels of your hierarchy and so even if %cd
allows you to change to some directories it may not allow to change to all of them. However, we donât know about your system, or what you have done to date to try and troubleshoot this, to be able to tell if that is the case or not.
Thank you so much for a detailed reply. After exploring the issue a little more, i realized that when i changed the working directory on both computers to a directory in G drive, the change of directory did not work.and thus files are stored/saved on local directories.
I tried several suggestions to change the starting directory from local machine to G drive w/o success. Does this make sense?
Thanks again
EKE
fomightez Distinguished Contributor
March 9
ekesawi:
But when i am using my work computer, the only accessible and visible files are those created on my work computer.
Can you make a text file at home with a .txt and edit it with a coding text editor, that isnât Jupyter, at work?
If so, then how? Youâd need to share some of that information with us.
If you cannot, then it isnât a Jupyter issue and you need to sort out things separate from Jupyter. At work I can see the same files in my Dropbox as at home and when I edit them at work using a coding text editor, Sublime Text in my case, I can later see the changes and make additional ones when I get home and open it with Sublime Text installed on my home machine. This is how productive syncing should work. Is this the case for you or not? And if not, what is different?
This is more or less what minrk was saying with, âjupyterlab is an editor for local files on your computer. So wherever it runs, it has access to the files on the same machine, like other text editors.â In your reply you offered no details beyond that you are using G-drive. We donât have access to your machine. (Please read âGetting good answers to your questionsâ as it may help you understand that you need to help us help you.)
For example, if you open Jupyter at work and run pwd (for âprint working directoryâ) inside a notebook, where does it say it has access to? If you then copy and move your file to there can you access it with your Jupyter? If that works then what can you do with running %cd <directory_to_make_working_directory> inside your notebook to change directories in your file hierarch. Sometimes due to permissions settings you cannot see certain levels of your hierarchy and so even if %cd allows you to change to some directories it may not allow to change to all of them. However, we donât know about your system, or what you have done to date to try and troubleshoot this, to be able to tell if that is the case or not.
I donât use G drive in that manner and so I cannot say.
Hopefully someone else can comment.
Thanks again. G-drive is the only available cloud storage at my work.
fomightez Distinguished Contributor
March 14
ekesawi:
I tried several suggestions to change the starting directory from local machine to G drive w/o success. Does this make sense?
I donât use G drive in that manner and so I cannot say.
Hopefully someone else can comment.
While it isnât ideal, at least now you know you can move files to where you can use them and put the new versions back later.