I am using Jupyter Notebooks (through Anaconda) on a Mac OS X Sierra. Now I would like to access a notebook saved in my iCloud Drive. However, I have been unable to find a way to access iCloud via the Juypter interface. I can of course upload a file with the "Upload" button, but not access the file sitting in my iCloud directly, which I would much prefer. How can I do that?
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With