The following Python code runs in an Anaconda Jupyter Notebook running on my Windows 10 PC, i.e., the notebook’s python finds my local drive ‘O’', which is a USB physical external drive, and says that the O drive exists.
But when I tried to run the same code in ‘https://nb.anaconda.cloud/jupyterhub/user/…’, the code did not see the O drive and said it does not exist.
If this was explained in Working with Files — JupyterLab 4.0.1 documentation, I apologize for not understanding it.
import os, sys
if os.path.exists('O:\\'):
print('O drive exists.')
else:
print('Cannot find the O Drive.')
Any help would be much appreciated.
Marc