[IPython-dev] IPython on Android
Carl Smith
carl.input at gmail.com
Tue Oct 30 15:48:27 EDT 2012
Hi all
I've been playing with getting IPython Notebook running on Android again,
on top of SL4A. I've got IPython and tornado installed, and I did a quick
test, using the following code.
import tornado
import IPython
print IPython.sys.copyright
When I run this, tornado imports, IPython imports and the copyright is
printed, so it appears we can use IPython as a library on Android, which is
nice, but I'm looking to get the Notebook serving. I'm still hacking away
at it, but had a couple of questions.
I'm sure the docs say the Notebook has no hard dependencies beyond tornado,
but I thought there was one more. Is tornado the only dependency for the
Notebook?
Is there some way to launch the Notebook from within a Python script,
forgetting os.system type stuff?
Note: I've tried running...
import runpy, IPython
runpy.run_module(IPython)
...but got an ImportError with the message:
Loader for module IPython can not handle module <module 'IPython' from
'/mnt/sdcard/com.googlecode.pythonforandroid/extras/python/IPython.__init__.pyc'>"
Thanks
Carl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20121030/fa1b8868/attachment.html>
More information about the IPython-dev
mailing list