Forum Archive

numpy again

jose3f23

Some time ago new Pythonista users posted requests to have numpy and other scientific libraries in Pythonista.

Omz kindly answered that the port was hard job mainly due to the need of compiling some fortran code for IOS and ARM.

In my experience numpy setup only needs c compilation. The .f files appear only in the f2py sublibrary of numpy. f2py is needed to translate fortran user code to python and this feature is, of course, no needed in Pythonista. Just comment the f2py line in the numpy setup file.

So I suggest to omz reconsider future inclusion of numpy in Pythonista that would open the door to other packages that need numpy.

I have had a dream....

Thanks for your attention.

rees247

adding scipy or numpy, at the least, would be very useful to me and make pythonista and the iPad the darling of STEM folk, like me.

smkirby229

This would be amazing, if it were possible. I'm already able to do a lot of my scientific research on my iPad. This would mean I could do everything, and would open up the possibility of much more substantial teaching on the ipad too.

I'd be very willing to pay a premium price for a version of Pythonista that had numpy/scipy/matplotlib baked in.

S

gisdude29

OK...maybe the author is reading these posts?

athros216

He is. He just doesn't comment on all of them, especially the ones that he has already responded to.

RumbleKittie

I just downloaded Pythonista today. So far, I am very impressed. However, if it had numpy/scipy/matplotlib, it would transform from an entertaining app into an immensely useful tool. Python is a very popular language in scientific circles, so I imagine that this functionality would make the app that much more popular. I, too, would gladly pay extra for the inclusion of those modules much like smkirby mentioned above.

coj151

I fully agree, that numpy/scipy/matplotlib would be worth a lot of efforts. just imagine the use for scientist-programmers, students, teaching, anybody who looks at code and data... Ipad is at any campus in the world - and using it for brief analyses and coding projects, presenting/sharing project ideas/results... That was terrific.

omz

I'm not sure about scipy yet, but numpy and matplotlib will likely be part of the next update. I'll have to do more testing, but it's starting to look promising...

Screenshot

Sebastian

Awesome! :D

stophlong

Yes, that will be fantastic!

beer2011

It's wonderful! (^^/

kw

/me screams

(I would make it an in app purchase so that we have ways of funding your development, the people that would use such modules can definitely support you :) )

athros216

Amazing work omz!

kw

Don't answer this if you don't want to, but do you think it will be possible to interact with 3D graphics made by matplotlib?

(maybe with scene kit? https://developer.apple.com/library/mac/documentation/3DDrawing/Conceptual/SceneKit_PG/Introduction/Introduction.html)

sidewinder

Fantastic news! Thank you. :-)

sidewinder

Can I vote against in-app-purchase? It has a tacky money grabbing feel and splits the user base. New users alone will generate handsome returns for a numpy matplotlib module.

wsa

I agree with sidewinder — no (*&$#%#$ in-app purchases, please. The practice is repulsive. The app is hardly expensive in the first place, given what it does, and numpy will definitely attract new users.

omz

I don't think that I'll make this an in-app purchase. If you find a cool Pythonista script somewhere, and you have the latest version of the app, you should be able to run it, period. Introducing IAPs like this would reduce the appeal of an "all-in-one" programming package.

This is not to say that I would never use IAP at all (I can think of a few hypothetical features for which it might make sense), but not in ways that affect interoperability.

To be honest, I am considering to increase the regular price of the app a bit though. Comparable apps typically cost at least $10, so Pythonista is relatively cheap right now, especially given that it's a universal app. This wouldn't affect existing users at all, and I haven't actually made a decision yet, just something I'm thinking about.

I also don't think that I'll make numpy and matplotlib available in Editorial, at least not initially.

That said, here's another screenshot to whet your appetite, this time in full retina resolution. ;)

Screenshot

bee18

@omz: Could you make the next Pythonista update to be working again on iPad1? I could ignore the last update, but I don't want to miss this one. Please… :( I promise I'll buy Editorial if Pythonista could be run on iPad1 again. :D

omz

@bee I'm sorry, but that won't happen. I know this sucks for iPad 1 owners, and I've kept iOS 5 compatibility for quite a long time after iOS 6 was released for exactly this reason, but it's quite a bit more difficult to support older versions of iOS alongside iOS 7, and my resources (time) as a solo developer are quite limited.

roger

@omz awesome news, can't wait for the next version. I know you're still working on it, but any idea when it might be released?

Once you get Matplotlib working properly, it'd be great if you could eventually add support for inline plotting, a la IPython. Actually a full IPython front-end would be awesome too.

I'm not the biggest fan of IAPs, but I think it's a better idea to charge $0.99 for extra packages that not everyone will use, instead of raising the entire cost of Pythonista. I think being cheaper than comparable apps is a good thing in some regards.

bee18

@omz: Yes, I understand. Thank you for responding my query. sad '_'

bee18

Just found a great simple app: http://tydligapp.com

With numpy and matplotlib, I think some pythonistas will write a program similar to that by using Pythonista. (pun intended) :D

Pablo

I'm new to the forum, I just bought Pythonista right after omz's posted those beautiful images of matplotlib. I just wanted to thank you omz! Waiting anxiously for the next update!

Avisual68

Loving the application. Is there a timeline for next release

omz

@Avisual I'm still working on it (numpy/matplotlib won't be the only new thing), and I'm not sure yet when I'll be done.

Avisual68

I see your a solo developer. Can I offer any support.

kw

Fun possibility?

matplotlib + (lightning to serial adapter) + pyserial + equipment = real time data streaming/plotting?

This is that cable: http://redpark.com/lightning-console-cable-l2-rj45v/ , I have used it with get-console for data acquisition. Cool stuff!

ZGainsforth

I'm absolutely delighted to see that numpy + matplotlib are coming! Thank you so much for developing this! This is the last ingredient I need to be able to do science development on the road with my iPad.

robo

When Will numpy+matplotlib be included?

This would make life so much easier.

henryiii

This would be a perfect time to include SymPy by default, since it has built in support for plotting with matplotlib. (Note: it also can plot to text, which is quite funny).

It's quite small and easy to download, but it's irritating to have to delete it every time I want to backup to Dropbox.

sidewinder

So sympy works with pythonista? Great! How did you install it? And why do you have to delete it to do a DropBox backup?

henryiii

@sidewinder, you can use https://gist.github.com/henryiii/9011826 , but it extracts into sympy/, so the Dropbox script picks it up when run.

sidewinder

Great! Henryiii - it shouldn't be too hard to edit the Dropbox script to tell it to ignore the sympy folder. Have a look at my alteration to it to ignore the inbox folder on downloading (since attempting to write to the Inbox causes an error).

https://gist.github.com/sidewinder42/8631794

Cesqele

This would be absolutely awesome, as for IAPs, I'm absolutely repulsed by them. A single 10$ fee would be much better. But I think it should also be noted that there are also free python 2.7 interpreters for iOS that run locally but are inferior in quality(I'm thinking about pythoni2.7 by XiaoWen Huang, which includes tons of useless crap unrelated to python such as deeply philosophical works in chinese, a flashlight, a password manager, a web browser, a voice recorder, a calculator, and a tutorial for python).

henryiii

Python math actually has had numpy as an in app purchase for months. But the app is no where near pythonista in terms of usability and quality. The custom libraries and user interface really make a difference. So really looking forward to this upgrade!

drweisz

When will numpy and matplotlib come to your app?

Nicko

I am very excited to see NumPy and matplotlib coming along. I hope it comes soon!

Regarding pricing and in-app purchase, I have a suggestion: keep the price the same but offer the in-app purchase of a "warm glow". If you offered me the option to buy a "thumbs up" badge or a "like" for $5 I would totally buy a bunch of these when you roll out matplotlib. Apple's IAPs don't have to enable stuff; you can use them for stickers that show up when the program starts. I think many of your users would be happy to have the warm glow of knowing that they are supporting the development of an excellent product.

absurdwalls

I just bought Pythonista this morning. It is very impressive. I work in scientific research so numpy and matplotlib would be right up my alley. At the moment I'm just playing with it on my iPhone, but you may end up selling me on getting an iPad if I can get some real work done on it.

drweisz

So....when will numpy, sympy and matplotlib come?

Pablo

Yeah, I second drweisz question. When will numpy and matplotlib be available?
Thanks in advance.

Rothrock42

Yes please! Want.

I admires your commitment to making it part of pythonista, but would totally be willing to pay for it as an in app purchase too,

omz

Should be pretty soon now. I think I'll be able to submit it to Apple sometime next week.

Kenbo01

Fantastic! Can't wait for matplotlib.

Simonh231

@omz

Should be pretty soon now. I think I'll be able to submit it to Apple sometime next week.

Great! Please keep us pudated about the new version here or somewhere else ;)

Thanks.

Really excited about numpy support and the UI module!

pz

Is there an ETA for the new release?

Kenbo01

As per @omz's latest comment, it will presumably be submitted to Apple any day now.

briarfox

Does @omz have a twitter feed of the commits or update changes out anywhere? I can only find bits of info.

omz

I'm @olemoritz on Twitter.

briarfox

@omz Yeah I've been following you, was just wondering if you ran a separate twitter for Pythonista :P

techteej

@omz is @kenbo01 correct?

henryiii

I think Ole's been held up for a few days trying to get Editoral 1.1.1 through Apple. They've rejected it once. Pythonista will likely come after that.

omz

That's about right, I still plan to submit Pythonista 1.5 this month, regardless of whether Editorial 1.1.1 will get through review or not.

omz

That's about right, I still plan to submit Pythonista 1.5 this month, regardless of whether Editorial 1.1.1 will get through review or not.

Pablo

A friend of mine has bet me $50 Computable will be available before Pythonista v1.5... do you think i'll loose?

beer2011

And I think, but they are impressed by the UI of the 'Editorial'.
That is equivalent, will be installed in the 'Pythonista' is also great expectations.(^^

techteej

@Pablo I think you may loose that bet.

Pablo

@beer2011: google translate is not your friend.

preyern

I'm also eagerly waiting for numpy. After that, how about vpython (vpython.org) for simple interactive 3-D graphics. This is widely used in physics simulations for teaching, and the ipad would be a great environment.

henryiii

Ole submitted this an hour ago, within Apple's 48 hour deadline. We'll see what Apple says for this one!

MartinPacker

@henryiii How do you know? Just wondering if there's a public site for submission tracking. (I'm guessing he told you.)

Kenbo01

Ole's Twitter feed:

https://twitter.com/olemoritz

krshort

very eagerly awaiting numpy! Any approx. date on that release date? Glad to to pay an in app purch if provides incentive. First phase of research project ends in about 7 weeks and I've been hyping this app to my skeptical programmer (non sci or math) research group.

ccc

There was a TON of demand for Numpy and Matplotlib but since it has become part of Pythonista, there has been very little sharing of code and examples on GitHub based around Numpy and related modules. This is in sharp contrast to all of the recent sharing of code and examples on GitHub around the ui module. The charts and graphs that omz showed above are really slick but are there other folks doing things with Numpy and Matplotlib who are willing to share some of their code and examples?

Zoot

I use it as a calculator and for trying out stuff while learning more about numpy.

But the missing piece is pandas for most things I want to play with.
Having bundled SQL Alchemy with drivers for all common databases would be epic.

Currently playing with Computable and waiting for it to grow up a bit.

Yes, we're memory constrained even on the top end iOS devices today when you consider what these tools are generally used for, but there's always next week...

Z.

ihf

I agree that Pandas would make numpy and Matplotlib much more useful but then I'd also love to have cvxopt and scikit-learn. I'd like to be able to run QSTK which depends on these modules. Computable has Pandas but is crippled by the inability to add code other than what can be typed into a notebook. Pythonista lacks iPython and related modules but being able to share code is a huge advantage. Apple needs to reconsider its draconian approach to app approval.

ccc

Should we expect a swift response from Apple?!?

dgelessus

Dat pun.

Is it not possible to copy-paste code into Computable? I assume it would be, but I can't test it as I don't have the full version of that app.

(I would like to note how much I appreciate that there is no unnecessary hostility between Pythonista and Computable. There are too many communities on the internet that see anything remotely similar to their project as competition. This one is not one of them, for which I am very thankful.)

ihf

Yes,you can cut/paste (I didn't differentiate that from typing).

SpotlightKid

Here's a script I ported from this SciLab script:

4op_fm.py

Generates and plots a 64 entries wavetable with waveforms derived by 4-operator FM synthesis.

It doesn't really use numpy in the most effective way, since it was a direct port of code from another language (which I have never used).

Screenshot

Webmaster4o

What about scipy? Is that coming soon?