holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
546 stars 31 forks source link

iCloud folder unvisible in Files app #292

Open euaurora opened 1 year ago

euaurora commented 1 year ago

I downloaded Carnets-Jupyter (with scipy) in App Store. My device is iPad Pro, 11-inch (3rd generation), iPadOS version is 16.3.1.

Yesterday, I created a jupyter notebook file in /private/var/mobile/Library/Mobile Documents/iCloud-AsheKube-Carnets/Documents which could be seen in Carnets by default early, but it could not be seen in File app. I tried many ways to export my notebook file but failed. Then I tried to create a new notebook in File app, and the files directory in carnets turned to / private / var / mobile / Containers / Data / Application C112D18F-8E7D-464B-A435-CE35215F82C6 / Documents and the origin directory couldn't be accessed anymore.

So are there any way to export my notebook file in /private/var/mobile/Library/Mobile Documents/iCloud-AsheKube-Carnets/Documents ?

Look forward to your reply.

holzschu commented 1 year ago

Hi, thanks for reaching out. I don't fully understand the issue. If I read you correctly, you have created a notebook in "iCloud/Carnets", and it worked, and tried to export it, and it didn't work. That part is already weird: it should work, unless you're trying export methods that don't work, such as conversion to PDF by LaTeX. Here, the error message could help me in having a better understanding.

You then created a notebook in "On my iPad/Carnets", which is a different directory. I don't understand what you mean by "the origin directory couln't be accessed anymore" (again, the code you tried and the error message it showed would be really useful in getting a better understanding). Carnets has unlimited access to both "on my iPad/Carnets" and "iCould/Carnets" (everything else requires special permission).

The folder "iCloud/Carnets" should definitely be visible in the Files app. It's weird that it isn't. Maybe force-closing the Files app, or rebooting the device would help here.

euaurora commented 1 year ago

Appreciate to your reply and advice! Your understanding is correct. Apology to my poor English.😅

Actually I don't want to export it to PDF, I just want to sent my ipynb file to my PC. And now I use file->open, the directory is "On my iPad/Carnets", how to turn to "iCloud/Carnets" without accessing other unpermitted directories? And how to sent my file to PC in the situation that iCloud folder of Carnets is unvisible in Files app.

I've tried to reboot my iPad, but it wasn't of much help. Thanks!

holzschu commented 1 year ago

Thanks for the detailed explanation. If the goal is to transfer the file to the PC, and the file is already in the iCloud folder, I would open "icloud.com" on a web browser on the PC, then connect and navigate to iCloud drive.

From Carnets, you can go back to the file navigator by clicking on the "Back" arrow in the top left corner. There you should see the second notebook and the directory around it.

euaurora commented 1 year ago

The problem is in iCloud.com there is no file even no folder named Carnets. I have asked apple technical support and they said it's different between "backup" and “synchronization” for third-party software. If it is a "synchronization" file, it won't be shown in iCloud Drive but it can be synced on other devices with the same Apple ID.

For your second advice, because of the reboot before, clicking on the "Back" arrow will go back to the Files app. 😵‍💫😵‍💫😵‍💫

holzschu commented 1 year ago

So, I can tell you that, in a normal situation, there is a Carnets folder in the iCloud Drive (see screen capture) image

It even contains a few help files. I have no idea why it doesn't appear on your devices.

Clicking on the "Back" arrow brings you to a file browser inside Carnets, not to the Files app (but the two look pretty similar). The question is: can you see your notebook on this file browser, and what is the directory in the file browser?

euaurora commented 1 year ago

Here is my icloud.com capture: image

And in my iPad(with Carnets): ce619d6910922d40d29acf853d11f6f 37808af4005ac2ba128983ad3d8b403

And files in "My iPad/Carnets plus" are not what I want.

euaurora commented 1 year ago

If I reinstall the app, will the synced files be deleted?

holzschu commented 1 year ago

I don't think reinstalling the app will have an impact on the synced files.

euaurora commented 1 year ago

Oh, I found it! I found my files in "Recents" and your help folder "welcome" is there, too. But I still can't transfer the file because it is invisible in the Files app. I tried File->Save as to "My iPad/Carnets" but permission was denied.

The directory is from where I create a new file in "My iPad/Carnets" and copy it from File->Open. c48ea34d2bc99836336c097fd066ff4

A little suggestion is that it would be better to design "File->Save as" with the files browser, which can be more flexible and stable.

euaurora commented 1 year ago

I change the dir to "/private/var/mobile/Library/Mobile Documents/com\~apple~CloudDocs" and it worked! I am so excited and appreciate your help very much! 😭😭😭