Access iCloud Drive in Jupyter Notebook
Having found the solution to my question here is what to do:
Click on spotlight, type terminal
to open a terminal window.
Enter the startup folder by typing cd /Users/username/Library/Mobile\ Documents/com\~apple\~CloudDocs/foldername
.
Type jupyter notebook
to launch the Jupyter Notebook App and it will display your iCloud Drive folder.
More here: http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/execute.html
While someone can launch the Jupyter Lab or Jupyter Notebook software from the iCloud directory, as described in the accepted response, this will need to be done each and every time you want to access Jupyter notebooks within iCloud. Instead I prefer to create a symbolic link (symlink...a shortcut) to my iCloud folder, in my home directory. This will always be present. In doing this I can launch Jupyter Lab or a Jupyter Notebook from any folder or from Anaconda Navigator and I will always see a "folder" to iCloud.
To do this you need to open a Terminal and copy and paste the statement below into the Terminal window and hit return
:
ln -s ~/Library/Mobile*Documents/com~apple~CloudDocs/ iCloud
After creating this symlink, there will always be an iCloud
folder that you can browse in your home directory. You can use whatever name you want by replacing the "iCloud" at the on the statement above with your own name.
Mac: Access your iCloud Documents folder with Jupyter Notebook or JupyterLab
Hi! In my case what I do it's:
- Open a
Terminal
in Your Mac - Type:
cd ~/Library/Mobile*Documents/com~apple~CloudDocs/Documents
- Verify you are at the right folder. Type
pwd
- Open Jupyter Notebook or JupyterLab. Type:
jupyter notebook
or type:
jupyter lab
- Your browser will open a Jupyter Notebook (/Lab) and you'll see your iCloud
Documents
Folder and all the subfolders included on it