omz / Pythonista-Issues

Issue tracker for Pythonista (iOS)
166 stars 14 forks source link

Scipy for Pythonista #2

Open controversial opened 8 years ago

controversial commented 8 years ago

The scipy library is a scientific computing library for Python. It integrates nicely with numpy, which is already included in Pythonista.

Including scipy with Pythonista would mean we'd have all the dependencies in place for the easy inclusion of lots of really powerful libraries like:

zaino commented 8 years ago

I can't believe nobody else is commenting on this. Yes, scipy and scikit-learn would make pythonista a dream come true for anybody who does scientific computing. It would be nice to have a comment from the author, wether this is an impossible feature to add or it just requires time.

dgelessus commented 8 years ago

@zaino No need to get angry :) If you check the language composition of scipy on GitHub (click on the multicolored bar under the commits/branches/releases/contributors links for detailed numbers) you'll see that over half of the code is not written in pure Python, but in compiled languages like C, C++ and Fortran. C and C++ are supported by the iOS development tools, which means that those parts would be reasonably easy to port. However @omz has said before (I think) that there is no Fortran compiler targetting iOS (aside from Fortran-to-C translators), which makes it basically impossible for him to port the 22.5 % of Fortran code in the repo to iOS.

Believe me, many people have requested the additon of scipy, but as I understand it it's not an easy thing to do, so it's unlikely to be added in the near future.

zaino commented 8 years ago

I didn't mean to come out as angry sorry! It all makes sense, I just wonder how the heck the author of Computable manage to have it working on iPad. True, that app was pulled from the store, but I had it for a while and it was working pretty well.

MobileAnalytics commented 7 years ago

My App has integrated numpy, matplotlib, scipy, scikit-learn, now migrating scikit-image. https://twitter.com/MobileAnalyser

controversial commented 7 years ago

@dgelessus Also remember that Computable used to have it 🤔

wgaylord commented 7 years ago

I hope we can figure this out sooner or later.

paanvaannd commented 7 years ago

Seconded! Scipy for Pythonista would be really great for scientific computing.

controversial commented 7 years ago

@paanvaannd Add a thumbs up on the original issue if you'd like to see this implemented

controversial commented 7 years ago

@omz http://apple.stackexchange.com/a/157502/133916 looks like a solution that people have had success with in the past that doesn't involve Fortran to C translation

MooMinIL commented 7 years ago

So, a year down the line, any progress on the matter? Having SciPy or an equivalent is quite detrimental for my consideration on whether to get Pythonista for scientific data analysis on the go

alby3z commented 7 years ago

I would definitely need scipy on iOS, being used as a basis in hundreds of open source project on the scientific computing.

I hope to have good news soon...

MobileAnalytics commented 7 years ago

Search 'scipy' in AppStore

maedoc commented 6 years ago

I'd argue that many of the most useful modules from SciPy in iOS programming are backed by C/C++ modules notably signal and image modules.

The Fortran backed stuff is obviously useful (optimization etc) but IMO understable omission given toolchains.

jmbenedetto commented 6 years ago

Hi, i really need it.

nsedlmayr commented 6 years ago

Just adding my voice that this would be great if possible...

cclauss commented 6 years ago

🍺

ghost commented 6 years ago

Another Scipy and Pythonista aficionado here, I would love the app even more with Scipy :)

maedoc commented 6 years ago

https://apple.stackexchange.com/a/157502 describes cross compilation w/ Fortran support, might make this issue feasible

MooMinIL commented 6 years ago

Anyone got a straight answer about this issue? All i’ve been seeing is users asking for implementation

dgelessus commented 6 years ago

The official answer is no, there is no scipy in Pythonista. omz has never said whether or not he wants to add scipy at some point, but it doesn't seem like that will happen in the near future. I think he's well aware that it's an often requested library, but if it's not something he wants to add at the moment, that is his decision.

maedoc commented 6 years ago

If the build for numpy were open sourced, we could probably adapt for SciPy, to lower work required for omz

preslavrachev commented 5 years ago

@maedoc @controversial @zaino This guy seems to have done it, although in a different app (sadly, no longer in the App Store): https://github.com/ktraunmueller/Computable/blob/master/python-ios/scripts/build-scipy.sh

maedoc commented 5 years ago

that's a neat trick, to use f2c, but curious if that actually works wtih scipy.

marko-stojovic commented 5 years ago

I’d love to know whether ios12 has brought us any closer to having scikit-learn on Pythonista, or the iPad in general. Without this, there seems to be no point in adopting Pythonista for data science purposes.

NikolayChuv commented 5 years ago

As a temporary alternative such a solution: https://forum.omz-software.com/topic/4200/data-analysis-workflow/17

maedoc commented 5 years ago

I’d love to know whether ios12 has brought us any closer to having scikit-learn on Pythonista, or the iPad in general.

it's a toolchain/compiler problem, not a iOS version issue: SciPy has parts written in Fortran which isn't supported by the iOS toolchains

Without this, there seems to be no point in adopting Pythonista for data science purposes.

iOS isn't a great place to be doing data science tbh

wgaylord commented 5 years ago

I will agree with this. I use my ipad and phone mostly for data collection. Or simple things. I then move the data to my server or laptop which has much more processing power to actually do the full analysis of the data. Tho it would be cool to have some of the signal stuff thats in SciPy but there are pure python packages that can do that.

KacemRostom commented 5 years ago

I'm wondering if there is any alternative of Griddata of Scipy for iOS development that you could suggest.

IvenDong commented 5 years ago

On Android, there is a python compiler “pydroid” which can compile c,c++ and fortran, so it can install python packages even they contain native code. I hope the same thing can be done on iOS(maybe it’s not so easy because Android is quite different from iOS)

scj643 commented 5 years ago

No that can not be done because the compiled code wouldn't be signed

IvenDong commented 5 years ago

But why c and c++ can be compiled on iOS? Pascal, basic, etc can also be complied on iOS.

scj643 commented 5 years ago

iOS can't run binaries that aren't signed. Any code that is complied without proper code signing won't run. This is why you can't download apps from the internet.

marko-stojovic commented 5 years ago

Ok, let me ask you this: with the launch of a PC-like operating system for the iPad just having been announced by Apple, should we be getting a little bit closer to Fortran being viable, thus making both SciPy and an R Studio app more feasible? (Data Science perspective here - I want to put that computing power to use if I can).

ColdGrub1384 commented 5 years ago

@goodclass compiled SciPy for arm64! https://github.com/goodclass/scipy_arm64

ImanetorX98 commented 3 years ago

My App has integrated numpy, matplotlib, scipy, scikit-learn, now migrating scikit-image. https://twitter.com/MobileAnalyser

Well man, could you share how?

cclauss commented 3 years ago

@ImanetorX98 https://github.com/ColdGrub1384/Pyto should have all those building blocks.