It depends on what exactly your requirements and dependencies are. The real 
pain points of Python development for mobile right now are modules that have C 
extensions or code, and deciding what you want to do about the UI.

For my projects I'm using HTML5 for my UI, and so what I've done is write a 
little library that makes it easier to create Python apps that simply load a 
main window with an embedded web browser for the UI on any platform. Then you 
just tell the browser which web page to load for your UI and have callbacks to 
the Python code, either via a local server or protocol handling. It uses Kivy 
on Android, Pythonista on iOS (Kivy supports iOS as well, but I was unable to 
get this solution working), and wxPython for the desktop, though eventually I 
want to just use PyObjC and PyCEF / Win32API directly instead of having an 
entire UI toolkit as a dependency. You can find the code here:

http://pyeverywhere.org/

It's pretty rudimentary right now, but it does what I need it to. The main 
roadblock I've run into is that since there's no cross-compiler support for 
Android or iOS in Python itself, mobile projects like Kivy and Pythonista 
require you to write special recipes to get any dependency that require 
compilation running. (My ultimate goal is on-device machine learning, e.g. 
NLTK, which will be fun to set up... ;-) Since there also is not really a way 
to set up a "site-packages" for a target environment, you also sometimes have 
to manually copy some dependencies into your source code tree to make sure they 
end up in the package. (Kivy nicely uses a virtualenv for Android setup, which 
allows you to avoid some of that.)

Regards,

Kevin

On 8/29/16, 4:13 PM, "Mobile-sig on behalf of Dipankar “Dipu” Ganguly" 
<[email protected] on behalf of 
[email protected]> wrote:

    I am developing image processing algorithms in IPython under Anaconda 
Navigator’s Jupyter on my Mac running OS 10.11.6. Is there a way to convert 
that code easily into an Android to run on an Android tablet?
    Thanks.
    
    Dipu
    
    
    Dipankar Ganguly
    Consultant: Strategy/Technology/Commercialization
    Bothell, WA
    Cell: 408-203-8814
    email: [email protected]
    http://www.linkedin.com/in/dipugee 
    
    
    
    
    
    
    
    
    
    
    
    
    
    _______________________________________________
    Mobile-sig mailing list
    [email protected]
    https://mail.python.org/mailman/listinfo/mobile-sig
    



_______________________________________________
Mobile-sig mailing list
[email protected]
https://mail.python.org/mailman/listinfo/mobile-sig

Reply via email to