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 33 forks source link

Installing SDEINT #190

Open Peter230655 opened 3 years ago

Peter230655 commented 3 years ago

sdeint is a pure Python package to integrate stochastic differential equations. When I try to install it I get a message like it is installed, but it is not. I know it works on iPad, because (with difficulties) I installed it on another Python App for iPads. Any help will be greatly appreciated! NB: I could install simpy without any difficulties,

holzschu commented 3 years ago

simpy is already installed by default. Could I see the error messages for sdeint?

Peter230655 commented 3 years ago

Please find the screen shot attached! Thanks!

On Thu 12. Aug 2021 at 09:05 Nicolas Holzschuch @.***> wrote:

simpy is already installed by default. Could I see the error messages for sdeint?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-897400029, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUSYAGUOBZD5PPDASTLT4NXD5ANCNFSM5CAMUA5A . 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&utm_campaign=notification-email .

-- Best regards,

Peter Stahlecker

holzschu commented 3 years ago

Hi, I don't see the screenshot on GitHub. It probably was misunderstood by their e-mail to web platform.

Just checking: sdeint has scipy as a requirement. Are you using Carnets-with-scipy?

Peter230655 commented 3 years ago

I just downloaded Carnets from the app store, I guessit has scipy. How else could I send the screen shot? Thanks!!

On Thu 12. Aug 2021 at 10:19, Nicolas Holzschuch @.***> wrote:

Hi, I don't see the screenshot on GitHub. It probably was misunderstood by their e-mail to web platform.

Just checking: sdeint has scipy as a requirement. Are you using Carnets-with-scipy?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-897442078, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUWPIRQFCEV636FOFDDT4N7YJANCNFSM5CAMUA5A . 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&utm_campaign=notification-email .

-- Best regards,

Peter Stahlecker

holzschu commented 3 years ago

There are two versions of Carnets on the AppStore: the regular, "Carnets" has the standard packages (numpy, sympy, pandas, matplotlib...) up to but not including scipy. It has an install size of 875 MB.

The other one, "Carnets with scipy", has everything that the standard version has, plus scipy, scikit-learn, coremltools and packages that require scipy. It has an install size of 1.4 GB. If you need scipy or packages that require scipy, then you need the big version. Both apps share the same iCloud folder, so they can share documents if needed.

Peter230655 commented 3 years ago

Clear, thanks! I will check this evening and revert.

On Thu 12. Aug 2021 at 14:17, Nicolas Holzschuch @.***> wrote:

There are two versions of Carnets: the regular, "Carnets" has the standard packages (numpy, sympy, pandas, matplotlib...) up to but not including scipy. It has an install size of 875 MB.

The other one, "Carnets with scipy", has everything that the standard version has, plus scipy, scikit-learn, coremltools and packages that require scipy. It has an install size of 1.4 GB. If you need scipy or packages that require scipy, then you need the big version. Both apps share the same iCloud folder, so they can share documents if needed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-897590710, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUSPU7G6FB6RHVWLIWTT4O3T5ANCNFSM5CAMUA5A . 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&utm_campaign=notification-email .

-- Best regards,

Peter Stahlecker

Peter230655 commented 3 years ago

I have the version with scipy. I converted the screen shot to PDF, maybe this will work. Thanks again!

On Thu 12. Aug 2021 at 14:41 Peter Stahlecker @.***> wrote:

Clear, thanks! I will check this evening and revert.

On Thu 12. Aug 2021 at 14:17, Nicolas Holzschuch @.***> wrote:

There are two versions of Carnets: the regular, "Carnets" has the standard packages (numpy, sympy, pandas, matplotlib...) up to but not including scipy. It has an install size of 875 MB.

The other one, "Carnets with scipy", has everything that the standard version has, plus scipy, scikit-learn, coremltools and packages that require scipy. It has an install size of 1.4 GB. If you need scipy or packages that require scipy, then you need the big version. Both apps share the same iCloud folder, so they can share documents if needed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-897590710, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUSPU7G6FB6RHVWLIWTT4O3T5ANCNFSM5CAMUA5A . 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&utm_campaign=notification-email .

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

holzschu commented 3 years ago

I don't see the screenshot. I think the problem is with the e-mail platform. Use a web navigator to go to: https://github.com/holzschu/Carnets/issues/190 , and edit your message (above) to include the image.

Peter230655 commented 3 years ago

IMG_0909.pdf Hope this works!

Peter230655 commented 3 years ago

I tried as you said. Did you get it? Thanks!

On Thu 12. Aug 2021 at 17:14, Nicolas Holzschuch @.***> wrote:

I don't see the screenshot. I think the problem is with the e-mail platform. Use a web navigator to go to: #190 https://github.com/holzschu/Carnets/issues/190 , and edit your message (above) to include the image.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-897724205, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUVECC67GLCX4LF36ETT4PQMTANCNFSM5CAMUA5A . 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&utm_campaign=notification-email .

-- Best regards,

Peter Stahlecker

holzschu commented 3 years ago

Excellent! I can see that the issue is from the line "module 'numpy.version' has no attribute 'short_version'". It comes from an edit to the numpy source code that removed this attribute; it has since been re-introduced: https://github.com/numpy/numpy/commit/75495a3cdedfd2ed381744732ca1c2a274ad10db

I'll have to update numpy and re-upload both versions of Carnets to the AppStore.

In the meantime, you can make sdeint work by editing wiener.py in the sdeint distribution.

It should work now (that's a temporary but immediate fix, waiting for the long term solution later).

Peter230655 commented 3 years ago

Thanks a lot! I am not 100% sure how to do this, but my son will hopefully help me!

On Thu 12. Aug 2021 at 17:51, Nicolas Holzschuch @.***> wrote:

Excellent! I can see that the issue is from the line "module 'numpy.version' has no attribute 'short_version'". It comes from an edit to the numpy source code that removed this attribute; it has since been re-introduced: numpy/numpy@ 75495a3 https://github.com/numpy/numpy/commit/75495a3cdedfd2ed381744732ca1c2a274ad10db

I'll have to update numpy and re-upload both versions of Carnets to the AppStore.

In the meantime, you can make sdeint work by editing wiener.py in the sdeint distribution.

  • !cp ~/Library/lib/python3.9/site-packages/sdeint/wiener.py ~/Documents/
  • edit wiener.py using an editor (the one embedded in Carnets will do, others are great too). Replace line 35 with numpy_version = [1,21,0].
  • copy back the edited file: !cp ~/Documents/wiener.py ~/Library/lib/python3.9/site-packages/sdeint/wiener.py

It should work now (that's a temporary but immediate fix, waiting for the long term solution later).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-897753145, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUR2EWMSBQQFSER2KEDT4PUY5ANCNFSM5CAMUA5A . 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&utm_campaign=notification-email .

-- Best regards,

Peter Stahlecker

Peter230655 commented 3 years ago

It worked perfect, thanks!

On Thu 12. Aug 2021 at 17:55, Peter Stahlecker @.***> wrote:

Thanks a lot! I am not 100% sure how to do this, but my son will hopefully help me!

On Thu 12. Aug 2021 at 17:51, Nicolas Holzschuch @.***> wrote:

Excellent! I can see that the issue is from the line "module 'numpy.version' has no attribute 'short_version'". It comes from an edit to the numpy source code that removed this attribute; it has since been re-introduced: @.*** https://github.com/numpy/numpy/commit/75495a3cdedfd2ed381744732ca1c2a274ad10db

I'll have to update numpy and re-upload both versions of Carnets to the AppStore.

In the meantime, you can make sdeint work by editing wiener.py in the sdeint distribution.

  • !cp ~/Library/lib/python3.9/site-packages/sdeint/wiener.py ~/Documents/
  • edit wiener.py using an editor (the one embedded in Carnets will do, others are great too). Replace line 35 with numpy_version = [1,21,0].
  • copy back the edited file: !cp ~/Documents/wiener.py ~/Library/lib/python3.9/site-packages/sdeint/wiener.py

It should work now (that's a temporary but immediate fix, waiting for the long term solution later).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-897753145, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUR2EWMSBQQFSER2KEDT4PUY5ANCNFSM5CAMUA5A . 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&utm_campaign=notification-email .

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

Peter230655 commented 2 years ago

Dear Nicolas,

There is a new version of lmfit available, lmfit 1.0.3. I tried to install it using this command: %pip install — lmfit

It prints ‚something‘, but when I type: lmfit.version I get 1.0.2 as a reply, NOT 1.0.3.

Am I doing something wrong?

Thanks for any help!!

On Sat 14. Aug 2021 at 09:19 Peter Stahlecker @.***> wrote:

It worked perfect, thanks!

On Thu 12. Aug 2021 at 17:55, Peter Stahlecker @.***> wrote:

Thanks a lot! I am not 100% sure how to do this, but my son will hopefully help me!

On Thu 12. Aug 2021 at 17:51, Nicolas Holzschuch < @.***> wrote:

Excellent! I can see that the issue is from the line "module 'numpy.version' has no attribute 'short_version'". It comes from an edit to the numpy source code that removed this attribute; it has since been re-introduced: @.*** https://github.com/numpy/numpy/commit/75495a3cdedfd2ed381744732ca1c2a274ad10db

I'll have to update numpy and re-upload both versions of Carnets to the AppStore.

In the meantime, you can make sdeint work by editing wiener.py in the sdeint distribution.

  • !cp ~/Library/lib/python3.9/site-packages/sdeint/wiener.py ~/Documents/
  • edit wiener.py using an editor (the one embedded in Carnets will do, others are great too). Replace line 35 with numpy_version = [1,21,0].
  • copy back the edited file: !cp ~/Documents/wiener.py ~/Library/lib/python3.9/site-packages/sdeint/wiener.py

It should work now (that's a temporary but immediate fix, waiting for the long term solution later).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-897753145, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUR2EWMSBQQFSER2KEDT4PUY5ANCNFSM5CAMUA5A . 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&utm_campaign=notification-email .

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

holzschu commented 2 years ago

Shouldn't that command be: %pip install --upgrade lmfit?

You can learn more about the packages installed with %pip show lmfit, which will show the version.

Peter230655 commented 2 years ago

Worked perfect! Thanks, as always!!, for your prompt and HELPFUL replies!

On Fri 15. Oct 2021 at 14:39, Nicolas Holzschuch @.***> wrote:

Shouldn't that command be: %pip install --upgrade lmfit?

You can learn more about the packages installed with %pip show lmfit, which will show the version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-944264712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQURZRPQ3RUE3DI2KZRLUHAOJZANCNFSM5CAMUA5A . 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.

-- Best regards,

Peter Stahlecker

Peter230655 commented 2 years ago

I hope that ‚return button‘ will come back before too long! :-))

On Fri 15. Oct 2021 at 14:43 Peter Stahlecker @.***> wrote:

Worked perfect! Thanks, as always!!, for your prompt and HELPFUL replies!

On Fri 15. Oct 2021 at 14:39, Nicolas Holzschuch @.***> wrote:

Shouldn't that command be: %pip install --upgrade lmfit?

You can learn more about the packages installed with %pip show lmfit, which will show the version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-944264712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQURZRPQ3RUE3DI2KZRLUHAOJZANCNFSM5CAMUA5A . 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.

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

holzschu commented 2 years ago

It's back in Carnets, but the fix is not working for Carnets Plus.

Peter230655 commented 2 years ago

Can I have Carnets and Carnets Plus on the same iPad? Thanks!

On Sun 17. Oct 2021 at 10:03, Nicolas Holzschuch @.***> wrote:

It's back in Carnets, but the fix is not working for Carnets Plus.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-945069194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUQ6OEJAQD62LKVDDF3UHJ7MTANCNFSM5CAMUA5A . 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.

-- Best regards,

Peter Stahlecker

holzschu commented 2 years ago

You can. They share the same iCloud folder, but have different folders on the iPad.

Peter230655 commented 2 years ago

Thanks! I will try to use Carnets for the time being.

On Sun 17. Oct 2021 at 10:08 Nicolas Holzschuch @.***> wrote:

You can. They share the same iCloud folder, but have different folders on the iPad.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-945069994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUVCVQN3EXXKLCKFJXDUHJ76XANCNFSM5CAMUA5A . 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.

-- Best regards,

Peter Stahlecker

Peter230655 commented 2 years ago

Just downloaded it, work fine! For what I am paying around with ( simpy ) Carnets is powerful enough. Still hope, you will manage for Carnets Plus, too! Thanks!

On Sun 17. Oct 2021 at 10:08 Peter Stahlecker @.***> wrote:

Thanks! I will try to use Carnets for the time being.

On Sun 17. Oct 2021 at 10:08 Nicolas Holzschuch @.***> wrote:

You can. They share the same iCloud folder, but have different folders on the iPad.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-945069994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUVCVQN3EXXKLCKFJXDUHJ76XANCNFSM5CAMUA5A . 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.

-- Best regards,

Peter Stahlecker

-- Best regards,

Peter Stahlecker

holzschu commented 2 years ago

Careful that the "on my iPad" folder for Carnets and Carnets Plus are different, but can be named the same ("Carnets" for both). I'm not entirely sure if or why that happens. Don't delete Carnets Plus without backing up all the files.

Peter230655 commented 2 years ago

Thanks for the hint! I had no intention to delete Carnets Plus, just have both of them on my iPad. Any problem with this?

On Sun 17. Oct 2021 at 10:25 Nicolas Holzschuch @.***> wrote:

Careful that the "on my iPad" folder for Carnets and Carnets Plus are different, but can be named the same ("Carnets" for both). I'm not entirely sure if or why that happens. Don't delete Carnets Plus without backing up all the files.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-945072236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUW3BFRF3LOLTKDX2WDUHKB6DANCNFSM5CAMUA5A . 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.

-- Best regards,

Peter Stahlecker

holzschu commented 2 years ago

No problems with having both apps on the same device, to the best of my knowledge.

Peter230655 commented 2 years ago

Thanks!

On Sun 17. Oct 2021 at 12:53 Nicolas Holzschuch @.***> wrote:

No problems with having both apps on the same device, to the best of my knowledge.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/190#issuecomment-945091300, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5MQUTP2EYWH5NW6FUHWYDUHKTLHANCNFSM5CAMUA5A . 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.

-- Best regards,

Peter Stahlecker