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
568 stars 34 forks source link

File management does not work at all for me #23

Open henkelma opened 5 years ago

henkelma commented 5 years ago

All previously saved files are greyed out and can‘t be opened.

Save as does not work at all. The dialog box is prepopulated with a not existing path.

holzschu commented 5 years ago

Hi, which version are you using? Did something change recently, or was it working before?

Also, I'll have to know in which directory are the files you are working on when you do "Save as".

henkelma commented 5 years ago

I‘m using 1.2, but the behaviour of 1.0 was the same IMG_0252

henkelma commented 5 years ago

IMG_0253

holzschu commented 5 years ago

If I type the name of a file at the end of the path in "save as", it saves that file (that is one of the bugs fixed between 1.0 and 1.2). The directory path itself does exist, but the "%20" inside was converted once too many in 1.0. I am more puzzled about these grayed-out files. Looking closely at your pictures, it seems they were created by Carnets, and you could edit them after creation, but iOS does not recognize them as Jupyter Notebooks, and thus denies Carnets the right to open them, despite the ".ipynb" suffix. From the Files App, can you open these files? The most likely explanation is that another App has registered the ".ipynb" suffix as a document type that is subtly different from the definition in Carnets. My goal is now to find which one and how.

holzschu commented 5 years ago

Here is, I think, a similar issue (with a different app): https://forums.sketchup.com/t/files-greyed-out/70601

Pandaski commented 5 years ago

Same issue here and the reason you supposed is true. The “.ipynb” suffix has been registered by another app “Notebook Master for Jupyter https://itunes.apple.com/cn/app/notebook-master-for-jupyter/id1326802832?mt=8”. After removed that app the notebook is visible in Carnets.

sDC2 commented 4 years ago

I have a very similar issue: it is not possible for me to add any files from any of my icloud folders into the carnets folder. It is not even possible to copy the "png" files from the welcome folder to a new subfolder that is created in carnets "root".

holzschu commented 4 years ago

Hi, Thank you for pointing this out. I can reproduce the issue. It seems you can copy .ipynb files but not other files. I think I can have a fix for that rapidly.

sDC2 commented 4 years ago

Thanks Nicolas for your quick investigation.

Let's hope the fix works, because the addition of screenshots to notebooks is a very helpful feature if it works. Now unfortunately, it is not possible to add images to the Carnets folder.

By the way, how does the "add image" Option work anyway? The resulting Markdown doesn't provide any clue as to where the picture added is saved - if not transferred to the Carnets folder.

Kind regards, Sander

holzschu commented 4 years ago

To add an image to a notebook, I use the markdown syntax:

![title](img/picture.png)

The path is relative to the current notebook directory, but it can also be absolute, or an URL.

holzschu commented 4 years ago

@sDC2 the issue you reported has been fixed in version 1.3.7, which is released to the AppStore.

sDC2 commented 4 years ago

Great work! Thanks for the quick solution

sDC2 commented 4 years ago

Hi Nicholas,

Why is there a Scipy reference addd to Carnets, while Carnets doesn't include this library?

On 5 Jan 2020, at 11:58, Nicolas Holzschuch notifications@github.com wrote:



@sDC2https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FsDC2&data=02%7C01%7C%7C3de063ea3d094c20317608d791bd6390%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637138114911975867&sdata=vd60QRbDulmj5NZdmI63z5LQLeXNirLtYVmT6mDPCIw%3D&reserved=0 the issue you reported has been fixed in version 1.3.7, which is released to the AppStore.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fholzschu%2FCarnets%2Fissues%2F23%3Femail_source%3Dnotifications%26email_token%3DAGC22UFHDFXDQMTX3IENROTQ4GOKBA5CNFSM4HL4W2P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDRVUA%23issuecomment-570890960&data=02%7C01%7C%7C3de063ea3d094c20317608d791bd6390%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637138114911985872&sdata=3liXIWLIvCQ0GiYofg8QFtUX6ZRlMlcMKMjxzBTr4Tc%3D&reserved=0, or unsubscribehttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGC22UHHTXJVWN3TZUBDPODQ4GOKBANCNFSM4HL4W2PQ&data=02%7C01%7C%7C3de063ea3d094c20317608d791bd6390%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637138114911995882&sdata=jZb6b6hD0VctNYkeHXeGIbsOR9gPWuFDpiQ3tOfXmic%3D&reserved=0.

holzschu commented 4 years ago

Hi, You mean, in the Help menu? You are right, this is strange. I'll remove it.

sDC2 commented 4 years ago

Indeed, although adding scipy to the standard modules could be a solution too... The author of Pyto somehow managed to do this...

On 13 Jan 2020, at 23:53, Nicolas Holzschuch notifications@github.com wrote:



Hi, You mean, in the Help menu? You are right, this is strange. I'll remove it.

sDC2 commented 4 years ago

Hi Nicolas,

1) I'm trying to download a notebook in pdf format. Unfortunately this generate an error that says pandoc isn't available. Pip instal pandoc does not resolve this. When I check pandoc is installed, pip show shows the module, help("pandoc") throws an error.

[cid:3F2EACAD-448E-4072-8198-8F0144743E08-L0-001] 2) When selecting "download" where does the file get saved? download as text, opens a new window but this window doesn't allow "open in" or "save to files".

thanks for your patience.

kind regards, sander

holzschu commented 4 years ago

Hi, pandoc requires a haskell compiler for iOS, which makes it even harder than the usual packages. It is on the todo list, but it will take some time.

To convert notebooks from ipynb format to other formats, you have !jupyter-nbconvert notebook.ipynb which converts to HTML, and jupytext which converts to Markdown (!pip install jupytext first).

The "download" behaviour is not useful. I'm going to change it so users can actually save the file in a good place.

holzschu commented 4 years ago

Hi again, the latest build on TestFlight has a working "Download as" menu. It doesn't allow to download as PDF, but you can download as LaTeX, then convert this LaTeX to PDF using another app, including my other app, a-Shell..