-
roger
There's already a programming app out with support for Bluetooth LE (techBASIC), and this seems like it could be a good feature for Pythonista.
Here's a site that describes communicating with a Bluetooth sensor on the iPad: http://www.byteworks.us/Byte_Works/Blog/Entries/2012/10/31_Controlling_the_TI_SensorTag_with_techBASIC.html
-
roger
Wow, so performance on the Air is comparable to a 2.3 GHz Core2Duo -- impressive!
-
roger
According the Computable blog the unlocked version was submitted by accident, so it's free for the next few days!
-
-
roger
I actually just came here to mention Computable.
It's focused mainly on scientific computing, so there's clearly room for both apps. That said, I hope @omz can step up the competition and bring IPython to Pythonista soon :)
-
roger
I believe all the included third-party modules should now support Python 3, so they should no longer be a hold up.
-
roger
After NumPy support, this is my biggest request. Even just PyObjC support would be great: http://www.saurik.com/id/5
-
-
roger
With the upcoming NumPy/Matplotlib support, it'd be great to be able to collect and analyze data from BLE sensors.
-
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.
-
roger
Sure I could hack something together, but it wouldn't be nearly as nice.
-
roger
A lot of people are interested in NumPy/Matplotlib support, and I think if Pythonista could execute code on a remote server that has those, then that'd be a practical compromise.
AFAIK IPython makes this fairly straightforward to do and stuff like plots can be forwarded to a client. IPython Notebook currently works via the web interface, but it's not as nice as Pythonista's.
-
roger
Thanks for the link, but alas at some point it'd need a way to talk to the hardware, and Pythonista has no such provision AFAIK :(
Like I mentioned, techBASIC on iOS already does this so it should be possible -- if omz decides to add it :)
-
roger
Really wish there was a way we could add features like this ourselves :(
-
roger
Seems like PyObjC does work in iOS, at least on a jailbroken device:
- http://www.saurik.com/id/5
- http://stackoverflow.com/questions/5999366/python-hello-world-in-pyobjc-on-iphone
- https://code.google.com/p/ios-python-objc/
Also there's another iOS Python package that seems to include ctypes support:
Not sure how hard they'd be to add to Pythonista, or even if Apple would allow them, but with them we'd presumably be able to support all iOS features in Python, after writing the appropriate wrappers.
(Sorry if this has been asked before BTW)
-
roger
https://gist.github.com/4192561
Just a quick test library I made to add some NumPy features to normal Python lists and make it slightly easier to deal with numeric stuff in Pythonista.
Features:
- unary and binary operators (e.g. array([1,2,3]) + array([4, 5, 6]))
- indexing with boolean and integer arrays (e.g. x[x > 10])
- vectorizes the math library (e.g. sin([1, 2, 3]))
- a few NumPy functions like arange, linspace, zeros, etc.
See the main() function at the end of the file for some examples.
Note that all operations will still be slow as everything is done in Python. Also the code hasn't been fully tested, so some things may not work.
If we can tweak the sample plotting code in Pythonista to mimic Matplotlib a bit, then we can probably come up with a usable platform for basic scientific stuff.
-
roger
Is it possible to use both canvas and scene modules in the same app? Seems like a CanvasLayer might be useful.
-
roger
Alas there's no jailbreak for my device, and I'd still like to see support for these in an official app.
-
roger
Sure, I'd love some help :)
retstep isn't too important, but fairly simple -- just added it
Haven't really thought about how to manage multiple contributions, perhaps just posting here and using gist would do for now? I have no objection to a wiki though.
I actually wrote most of the code on a PC, so the spaces came from my editor. Tabs are fine by me.
-