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

Pymonad #215

Open Peter230655 opened 2 years ago

Peter230655 commented 2 years ago

I installed pymonad on Carnet plus like %pip install pymonad. This seemed to work, no error messages

Then I tried: from pymonad import curry (Which should exist according to the Python book I am reading) However, I got an error message, that it cannot import curry from pymonad.

Did I do anything wrong?

Thanks for any help!

holzschu commented 2 years ago

According to the latest documentation for pymonad, it is now from pymonad.tools import curry. This maybe the issue, but I must say I don't know anything about pymonad.

See here: https://pypi.org/project/PyMonad/

Peter230655 commented 2 years ago

That solved it! Thanks for your prompt reply - as usual with you! Sorry about my dumb question!

NB:I also do not know anything about it, just wanted to play around with it!

On Sun 2. Jan 2022 at 08:59 Nicolas Holzschuch @.***> wrote:

According to the latest documentation for pymonad, it is now from pymonad.tools import curry. This maybe the issue, but I must say I don't know anything about pymonad.

See here: https://pypi.org/project/PyMonad/

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1003677693, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUQBSB64SRYQIRTTMJ3UUAAWPANCNFSM5LDJI2UQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Peter Stahlecker

Peter230655 commented 2 years ago

Dear Nicolas,

I just got an updated version of your Carnet Plus app ( It seems to download them automaticall, this is o.k. with me, even though I do not know WHY it does it automatically)

Any I noticed the following:

Before, when I plotted some graph, or whatever, as a standard it showed a ‚window‘, maybe 10 cm high, and I could scroll up / down in this ‚window‘. However, if I ‚clicked‘ this window, it opened up and showed all. (Of course, if the output exceeded the size of the screen of my iPad, I still could scroll to see all).

Now, this ‚clicking‘ to see all does not seem to work anymore.

Am I doing something wrong? You have added many new possibilities of setting in the top line, maybe I just do not find the setting I need.

Thanks!

Take care,

Peter

NB: You have a cmmand ‚copy cells‘. It would be great, if at one time you could include a command like ‚copy all cells‘. Thanks!

On Sun 2. Jan 2022 at 09:06 Peter Stahlecker @.***> wrote:

That solved it! Thanks for your prompt reply - as usual with you! Sorry about my dumb question!

NB:I also do not know anything about it, just wanted to play around with it!

On Sun 2. Jan 2022 at 08:59 Nicolas Holzschuch @.***> wrote:

According to the latest documentation for pymonad, it is now from pymonad.tools import curry. This maybe the issue, but I must say I don't know anything about pymonad.

See here: https://pypi.org/project/PyMonad/

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1003677693, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUQBSB64SRYQIRTTMJ3UUAAWPANCNFSM5LDJI2UQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

Peter230655 commented 2 years ago

Dear Nicolas,

I just noticed, that ‚autoclose brackets‘ in settings does not seem to work: Even if it has the ‚check‘, it does not close brackets automatically.

Thanks!

Peter

On Sun 13. Mar 2022 at 14:54 Peter Stahlecker @.***> wrote:

Dear Nicolas,

I just got an updated version of your Carnet Plus app ( It seems to download them automaticall, this is o.k. with me, even though I do not know WHY it does it automatically)

Any I noticed the following:

Before, when I plotted some graph, or whatever, as a standard it showed a ‚window‘, maybe 10 cm high, and I could scroll up / down in this ‚window‘. However, if I ‚clicked‘ this window, it opened up and showed all. (Of course, if the output exceeded the size of the screen of my iPad, I still could scroll to see all).

Now, this ‚clicking‘ to see all does not seem to work anymore.

Am I doing something wrong? You have added many new possibilities of setting in the top line, maybe I just do not find the setting I need.

Thanks!

Take care,

Peter

NB: You have a cmmand ‚copy cells‘. It would be great, if at one time you could include a command like ‚copy all cells‘. Thanks!

On Sun 2. Jan 2022 at 09:06 Peter Stahlecker @.***> wrote:

That solved it! Thanks for your prompt reply - as usual with you! Sorry about my dumb question!

NB:I also do not know anything about it, just wanted to play around with it!

On Sun 2. Jan 2022 at 08:59 Nicolas Holzschuch @.***> wrote:

According to the latest documentation for pymonad, it is now from pymonad.tools import curry. This maybe the issue, but I must say I don't know anything about pymonad.

See here: https://pypi.org/project/PyMonad/

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1003677693, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUQBSB64SRYQIRTTMJ3UUAAWPANCNFSM5LDJI2UQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

holzschu commented 2 years ago

Dear Peter, I could be wrong, but I'm wondering whether you have the latest TestFlight version (if it says "Retrolab" at the top, then it is the latest TestFlight). It's an experimental work that uses jupyterlab and retrolab instead of the old jupyter notebooks. I wouldn't recommend using it unless you are an expert in jupyterlab. If that is indeed the case, you can get either the previous TestFlight version using the TestFlight app, or the latest AppStore version (both will warn you that you already have the app installed and that it could overwrite your settings. It won't.)

Peter230655 commented 2 years ago

Dear Nicolas,

You are right, it does say ‚Retrolab‘ at the top. (Somehow, like I wrote, I TestFlight somehow downloads automatically…..)

I am definitely NO expert at jupiterlab, I have no idea, what the differences between the old jupiter and jupiterlab are. My only exposure to Python and jupiter are through your app. ( Long story, why this is so: I am a semi retired salesman. During Corona, I could not travel, so I had little work. My son ‚shamed‘ me into learning python, to avoid boredom. As my company does not allow me to install python on my laptop, I can only use it on my personal iPad - and this is where your app came in! :-)) So, I only play around with python, not related to any work)

I guess, I will continue with this new version, if I get into too many problems, I will switch back as you explained to me.

Just curiosity: Does Jupiterlab not autoclose bracket?

Thanks & take care,

Peter

On Sun 13. Mar 2022 at 16:40 Nicolas Holzschuch @.***> wrote:

Dear Peter, I could be wrong, but I'm wondering whether you have the latest TestFlight version (if it says "Retrolab" at the top, then it is the latest TestFlight). It's an experimental work that uses jupyterlab and retrolab instead of the old jupyter notebooks. I wouldn't recommend using it unless you are an expert in jupyterlab. If that is indeed the case, you can get either the previous TestFlight version using the TestFlight app, or the latest AppStore version (both will warn you that you already have the app installed and that it could overwrite your settings. It won't.)

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1066127283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUTCNCFEMBGQ5C6WSGLU7YEABANCNFSM5LDJI2UQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Peter Stahlecker

Peter230655 commented 2 years ago

Dear Nicolas,

I also tried to install the daepy library, uisng %pip install daepy

I did 'something', and then a lot of error messages came up. Did I do anything wrong?

Thanks a lot for your help!

Peter

Am Mo., 4. Apr. 2022 um 08:06 Uhr schrieb Peter Stahlecker < @.***>:

Dear Nicolas,

I have tried to install the SciKits library like this:

%pip install SciKits

However I got an error message: ERROR: No matching distribution found for SciKits Am I doing something wrong, or can it not be installed on you Carnet Plus?

Thanks a lot for your help!

Peter

Am So., 13. März 2022 um 16:30 Uhr schrieb Peter Stahlecker < @.***>:

Dear Nicolas,

I just noticed, that ‚autoclose brackets‘ in settings does not seem to work: Even if it has the ‚check‘, it does not close brackets automatically.

Thanks!

Peter

On Sun 13. Mar 2022 at 14:54 Peter Stahlecker @.***> wrote:

Dear Nicolas,

I just got an updated version of your Carnet Plus app ( It seems to download them automaticall, this is o.k. with me, even though I do not know WHY it does it automatically)

Any I noticed the following:

Before, when I plotted some graph, or whatever, as a standard it showed a ‚window‘, maybe 10 cm high, and I could scroll up / down in this ‚window‘. However, if I ‚clicked‘ this window, it opened up and showed all. (Of course, if the output exceeded the size of the screen of my iPad, I still could scroll to see all).

Now, this ‚clicking‘ to see all does not seem to work anymore.

Am I doing something wrong? You have added many new possibilities of setting in the top line, maybe I just do not find the setting I need.

Thanks!

Take care,

Peter

NB: You have a cmmand ‚copy cells‘. It would be great, if at one time you could include a command like ‚copy all cells‘. Thanks!

On Sun 2. Jan 2022 at 09:06 Peter Stahlecker @.***> wrote:

That solved it! Thanks for your prompt reply - as usual with you! Sorry about my dumb question!

NB:I also do not know anything about it, just wanted to play around with it!

On Sun 2. Jan 2022 at 08:59 Nicolas Holzschuch < @.***> wrote:

According to the latest documentation for pymonad, it is now from pymonad.tools import curry. This maybe the issue, but I must say I don't know anything about pymonad.

See here: https://pypi.org/project/PyMonad/

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1003677693, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUQBSB64SRYQIRTTMJ3UUAAWPANCNFSM5LDJI2UQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

holzschu commented 2 years ago

daepy contains an extension written in C (cheby) so it cannot be installed locally by the user (because we don't have a C compiler on iOS).

Peter230655 commented 2 years ago

Dear Nicolas,

Thanks for your prompt reply! Do you have plans to add this library into a future version of Carnet Plus?

Take care!

Peter

Am Mo., 4. Apr. 2022 um 11:04 Uhr schrieb Nicolas Holzschuch < @.***>:

daepy contains an extension written in C (cheby) so it cannot be installed locally by the user (because we don't have a C compiler on iOS).

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1087299439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUUQZN4XGZ5LB2LLREDVDKWCPANCNFSM5LDJI2UQ . You are receiving this because you authored the thread.Message ID: @.***>

Peter230655 commented 2 years ago

Dear Nicolas,

I am trying to use the pythreejs library to create nice 3D plots. I had no problem installing it on your Carnets Plus app. Also, it shows static pictures without problems.

The problem comes when I try animations. It will show the ‚start line‘ under the animation, but not the animation itself

With matplotlib.animations I had the same problem, until someone told me this from IPython import HTML

And as the last line of the animation program I put: HTML(anim.to_jstml) Where anim (probably) is the ‚animated object‘

I tried this with pythreejs, but it does not work.

Do you know, what I have to do to see the animations with pythreejs?

Thanks a lot for your help!!

Peter

On Mon 4. Apr 2022 at 11:07 Peter Stahlecker @.***> wrote:

Dear Nicolas,

Thanks for your prompt reply! Do you have plans to add this library into a future version of Carnet Plus?

Take care!

Peter

Am Mo., 4. Apr. 2022 um 11:04 Uhr schrieb Nicolas Holzschuch < @.***>:

daepy contains an extension written in C (cheby) so it cannot be installed locally by the user (because we don't have a C compiler on iOS).

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1087299439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUUQZN4XGZ5LB2LLREDVDKWCPANCNFSM5LDJI2UQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Peter Stahlecker

Peter230655 commented 2 years ago

Dear Nicolas,

I tried to install the library scikits but I got an error, which of course I do not understand. Am I doing something wrong?

Thanks!

NB: I got the animation to work! So, pythreejs works just fine in your app!

Peter

On Mon 9. May 2022 at 16:22 Peter Stahlecker @.***> wrote:

Dear Nicolas,

1. For whatever reason the animation is working now, no idea what I did not make it work!

When the program on your app, I get this error message:

/private/var/containers/Bundle/Application/45C764EB-024D-439A-B216-2C8DF819AD2C/Carnets-sci.app/Library/lib/python3.9/site-packages/jupyter_client/session.py:716: UserWarning: Message serialization failed with: Out of range float values are not JSON compliant Supporting this message is deprecated in jupyter-client 7, please make sure your message is JSON-compliant content = self.pack(content)

What does this mean? The program still runs fine.

2. Sometimes, a program consists of many ‚cells‘. Maybe in some update, you could install a button like ‚run all cells‘ (As you surely know, the JUNO app has this button - but I prefer your app, even without this button!)

Thanks, Peter

On Fri 6. May 2022 at 15:58 Peter Stahlecker @.***> wrote:

Dear Nicolas,

I am trying to use the pythreejs library to create nice 3D plots. I had no problem installing it on your Carnets Plus app. Also, it shows static pictures without problems.

The problem comes when I try animations. It will show the ‚start line‘ under the animation, but not the animation itself

With matplotlib.animations I had the same problem, until someone told me this from IPython import HTML

And as the last line of the animation program I put: HTML(anim.to_jstml) Where anim (probably) is the ‚animated object‘

I tried this with pythreejs, but it does not work.

Do you know, what I have to do to see the animations with pythreejs?

Thanks a lot for your help!!

Peter

On Mon 4. Apr 2022 at 11:07 Peter Stahlecker @.***> wrote:

Dear Nicolas,

Thanks for your prompt reply! Do you have plans to add this library into a future version of Carnet Plus?

Take care!

Peter

Am Mo., 4. Apr. 2022 um 11:04 Uhr schrieb Nicolas Holzschuch < @.***>:

daepy contains an extension written in C (cheby) so it cannot be installed locally by the user (because we don't have a C compiler on iOS).

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1087299439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUUQZN4XGZ5LB2LLREDVDKWCPANCNFSM5LDJI2UQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

Peter230655 commented 2 years ago

Dear Nicolas,

I have tried to install the SciKits library like this:

%pip install SciKits

However I got an error message: ERROR: No matching distribution found for SciKits Am I doing something wrong, or can it not be installed on you Carnet Plus?

Thanks a lot for your help!

Peter

Am So., 13. März 2022 um 16:30 Uhr schrieb Peter Stahlecker < @.***>:

Dear Nicolas,

I just noticed, that ‚autoclose brackets‘ in settings does not seem to work: Even if it has the ‚check‘, it does not close brackets automatically.

Thanks!

Peter

On Sun 13. Mar 2022 at 14:54 Peter Stahlecker @.***> wrote:

Dear Nicolas,

I just got an updated version of your Carnet Plus app ( It seems to download them automaticall, this is o.k. with me, even though I do not know WHY it does it automatically)

Any I noticed the following:

Before, when I plotted some graph, or whatever, as a standard it showed a ‚window‘, maybe 10 cm high, and I could scroll up / down in this ‚window‘. However, if I ‚clicked‘ this window, it opened up and showed all. (Of course, if the output exceeded the size of the screen of my iPad, I still could scroll to see all).

Now, this ‚clicking‘ to see all does not seem to work anymore.

Am I doing something wrong? You have added many new possibilities of setting in the top line, maybe I just do not find the setting I need.

Thanks!

Take care,

Peter

NB: You have a cmmand ‚copy cells‘. It would be great, if at one time you could include a command like ‚copy all cells‘. Thanks!

On Sun 2. Jan 2022 at 09:06 Peter Stahlecker @.***> wrote:

That solved it! Thanks for your prompt reply - as usual with you! Sorry about my dumb question!

NB:I also do not know anything about it, just wanted to play around with it!

On Sun 2. Jan 2022 at 08:59 Nicolas Holzschuch @.***> wrote:

According to the latest documentation for pymonad, it is now from pymonad.tools import curry. This maybe the issue, but I must say I don't know anything about pymonad.

See here: https://pypi.org/project/PyMonad/

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1003677693, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUQBSB64SRYQIRTTMJ3UUAAWPANCNFSM5LDJI2UQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

Peter230655 commented 2 years ago

Dear Nicolas,

1. For whatever reason the animation is working now, no idea what I did not make it work!

When the program on your app, I get this error message:

/private/var/containers/Bundle/Application/45C764EB-024D-439A-B216-2C8DF819AD2C/Carnets-sci.app/Library/lib/python3.9/site-packages/jupyter_client/session.py:716: UserWarning: Message serialization failed with: Out of range float values are not JSON compliant Supporting this message is deprecated in jupyter-client 7, please make sure your message is JSON-compliant content = self.pack(content)

What does this mean? The program still runs fine.

2. Sometimes, a program consists of many ‚cells‘. Maybe in some update, you could install a button like ‚run all cells‘ (As you surely know, the JUNO app has this button - but I prefer your app, even without this button!)

Thanks, Peter

On Fri 6. May 2022 at 15:58 Peter Stahlecker @.***> wrote:

Dear Nicolas,

I am trying to use the pythreejs library to create nice 3D plots. I had no problem installing it on your Carnets Plus app. Also, it shows static pictures without problems.

The problem comes when I try animations. It will show the ‚start line‘ under the animation, but not the animation itself

With matplotlib.animations I had the same problem, until someone told me this from IPython import HTML

And as the last line of the animation program I put: HTML(anim.to_jstml) Where anim (probably) is the ‚animated object‘

I tried this with pythreejs, but it does not work.

Do you know, what I have to do to see the animations with pythreejs?

Thanks a lot for your help!!

Peter

On Mon 4. Apr 2022 at 11:07 Peter Stahlecker @.***> wrote:

Dear Nicolas,

Thanks for your prompt reply! Do you have plans to add this library into a future version of Carnet Plus?

Take care!

Peter

Am Mo., 4. Apr. 2022 um 11:04 Uhr schrieb Nicolas Holzschuch < @.***>:

daepy contains an extension written in C (cheby) so it cannot be installed locally by the user (because we don't have a C compiler on iOS).

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1087299439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUUQZN4XGZ5LB2LLREDVDKWCPANCNFSM5LDJI2UQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

Peter230655 commented 2 years ago

Dear Nicolas,

I switched back to your ‚old‘ Carnets Plus. As you said, all the files remained intact, none got lost.

Main reason I switched back was that fact that you new version did not auto close brackets. This is just a very convenient thing.

Question: Will you also ‚update‘ you old version with new issues, say new libraries, or fully concentrate on the Jupiterlab version?

Another point I noted with the new version: When I closed some program and started a new one, it would (often anyway) say that too many kernels are running. I would then close the app, and re-start it. I guess, this is related toJupiterlab?

Thanks & take care!

Peter

On Sun 13. Mar 2022 at 21:54 Peter Stahlecker @.***> wrote:

Dear Nicolas,

You are right, it does say ‚Retrolab‘ at the top. (Somehow, like I wrote, I TestFlight somehow downloads automatically…..)

I am definitely NO expert at jupiterlab, I have no idea, what the differences between the old jupiter and jupiterlab are. My only exposure to Python and jupiter are through your app. ( Long story, why this is so: I am a semi retired salesman. During Corona, I could not travel, so I had little work. My son ‚shamed‘ me into learning python, to avoid boredom. As my company does not allow me to install python on my laptop, I can only use it on my personal iPad - and this is where your app came in! :-)) So, I only play around with python, not related to any work)

I guess, I will continue with this new version, if I get into too many problems, I will switch back as you explained to me.

Just curiosity: Does Jupiterlab not autoclose bracket?

Thanks & take care,

Peter

On Sun 13. Mar 2022 at 16:40 Nicolas Holzschuch @.***> wrote:

Dear Peter, I could be wrong, but I'm wondering whether you have the latest TestFlight version (if it says "Retrolab" at the top, then it is the latest TestFlight). It's an experimental work that uses jupyterlab and retrolab instead of the old jupyter notebooks. I wouldn't recommend using it unless you are an expert in jupyterlab. If that is indeed the case, you can get either the previous TestFlight version using the TestFlight app, or the latest AppStore version (both will warn you that you already have the app installed and that it could overwrite your settings. It won't.)

— Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/215#issuecomment-1066127283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUTCNCFEMBGQ5C6WSGLU7YEABANCNFSM5LDJI2UQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker