maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] IPython for Maemo 4 & 5 & MeeGo Harmattan & Sailfish (https://talk.maemo.org/showthread.php?t=82510)

rcolistete 2012-02-22 15:59

[Announce] IPython for Maemo 4 & 5 & MeeGo Harmattan & Sailfish
 
IPython is an enhanced Python interactive shell, so interactively using Python and its modules becomes a lot easier.

Versions of IPython :
- for Maemo 4 Diablo and Maemo 5 Fremantle : v0.10.2 is available in their repositories, this is the latest version compatible with Python 2.5 (so Maemo 4 & 5 can't have IPython >= 0.11);
- for MeeGo 1.2 Harmattan : v0.13.1 (with Notebook & Qt console) & v0.10.2 are available in my Harmattan repository, v0.10 in official Nokia repositories, see the IPython for MeeGo Harmattan topic in Talk Maemo.org;
- for Sailfish & Mer & Nemo Mobile : v2.2.0 (with Notebook) is available in OpenRepos.net, see the IPython (terminal, Notebook) for Sailfish topic in Talk Maemo.org.

IPython 0.10.2 x previous versions of IPython on Maemo 4 & 5 :
- v0.10.2 is newer (09/04/2011) than v0.10 (04/07/2009) for Maemo 5 and v0.8.1 (09/05/2007) for Maemo 4;
- v0.10.2 is the last IPython version compatible with Python 2.5.x present on Maemo 4 & 5;
- v0.10.2 is optified for Maemo 5, with a separate package 'ipython-doc' with documentation and examples;
- v0.10.2 has an icon for Maemo 4 and can be installed from the application manager;
- v0.10.2 for Maemo 5 is promoted to extras repository, so IPython is more visible to Maemo users and other packages (e.g., "SymPy Interactive Shell") depending on it can be promoted.

Screenshot on Nokia N900 after launching IPython by tapping the icon or typing "ipython" in X Terminal :
http://www.robertocolistete.net/ipyt....10.2_N900.png

Install & use on Maemo 5 :
Click the install icon in Maemo.org Downloads or enable extras repository, search for IPython in the application manager and install "IPython". IPython takes about 6.3 MB after install but it is optified. Use the IPython icon or the terminal command 'ipython' to launch IPython (between 2-3 seconds).
See post #6 about using a Nokia N900 as web client for IPython 0.13.1 Notebook server running on a Nokia N9.

Install & use on Maemo 4 :
Click the install icon in Maemo.org Downloads or enable extras repository, search for IPython in the application manager and install "IPython". IPython takes about 6.3 MB after install. Use the IPython icon or the terminal command 'ipython' to launch IPython (about 7 seconds).
PS: the "help() not available - check site.py" warning in 1st line of the IPython windows seems to be due to some missing interactive "help" command of Python for Maemo 4.

The IPython v0.10.2 documentation and examples can also installed by typing '# apt-get install ipython-doc' as root with extras-testing or extras-devel repository enabled. It is optified and uses 13 MB after install. The files are located at the '/usr/lib/python2.5/site-packages/IPython-doc/' directory.

Some features of the IPython interactive shell :
- tab (or ctrl+i) completion for objects;
- input history navigation using up (or Ctrl+p) and down (or Ctrl+n) arrows;
- search input history by typing partial input then up/down arrow to show matching lines, or ctrl+r to have a serch prompt;
- input line n can be retrieved using '_in', 'In[n]', '_ih[n]', and _i, _ii, _iii to access the previous, next previous and next-next previous inputs;
- output line n can be retrieved using '_n', 'Out[n]', '_oh[n]', and _, __, ___ access the previous, next previous and next-next previous outputs;
- information about objects using '?word' or 'word?', full information with '??word' or 'word??';
- magic command system, like '%run file.py', '%pwd';
- run system commands with '!' as prefix, e.g., '!ls".
More details in :
IPython v0.10.2 interactive tutorial
IPython v0.10.2 Interactive Reference

IPython is the best interactive Python shell for using :
- SymPy (available on Maemo 4, 5, MeeGo Harmattan and Sailfish), and "SymPy Interactive Shell" (not yet for Sailfish) automatically installs IPython;
- NumPy & MatPlotLib (available on Maemo 5 and MeeGo 1.2 Harmattan), with "from pylab import *" loading NumPy and MatPlotLib;
- etc.

To Nokia N900 users, please help promote IPython and IPython Documentation to extras repository by voting in :
IPython 0.10.2-1maemo1
IPython documentation and examples 0.10.2-2maemo2

rcolistete 2012-03-10 13:29

Re: [Announce] IPython for Maemo 4 & 5 & 6
 
For N900 users : IPython 0.10.2 is now in Maemo 5 extras-testing repository, so you can vote for promotion to extras, see the end of 1st post of this topic.

For N8x0 users : IPython 0.10.2 is now in extras repository.

rcolistete 2012-04-14 13:41

Re: [Announce] IPython for Maemo 4 & 5 & 6
 
IPython for Maemo 5 needs just one more vote to be promoted to extras & appear in Maemo.org Downloads. And SymPy depends on IPython to be promoted too. So, if you are a IPython and/or SymPy user, just vote here :
IPython 0.10.2-1maemo1

rcolistete 2012-04-14 16:27

Re: [Announce] IPython for Maemo 4 & 5 & 6
 
Thanks everybody, now IPython & SymPy are promoted to extras and Maemo.org Downloads !

IPython on extras repository opens the door to embed it in applications with GUI. For example, a Python IDE.

rcolistete 2013-01-06 17:47

Re: [Announce] IPython for Maemo 4 & 5 & 6
 
IPython 0.13.1 is now released for MeeGo Harmattan, see the IPython for MeeGo Harmattan topic in Talk Maemo.org.

rcolistete 2013-02-03 19:18

Re: [Announce] IPython for Maemo 4 & 5 & 6
 
What about Maemo 5 / Nokia N900 running IPython Notebook 0.13.1 ? It is technically possible trying to use Python 2.7 for Maemo 5, but there are some (7 or more) package dependencies not currently available on Maemo 5, so it needs some work.

For the moment, it is possible to run IPython Notebook 0.13.1 on a Nokia N900 as web client, with the IPython Notebook server running on a Nokia N9 (or on a PC with IPython Notebook server). See more details in post #19 of the topic "[Announce] IPython (Notebook, QtConsole) 0.13.1 for MeeGo Harmattan".

Screenshot of my Nokia N900 running the Fennec/Firefox as web client of IPython Notebook with server on my Nokia N9 :
http://www.robertocolistete.net/ipyt....1_N9-N900.jpg

With Fennec/Firefox v7, Nokia N900 runs web client of IPython Notebook 0.13.1 very well, with all keyboard shortcuts working. It is slow, so be patient. But for typing not too long notebooks, IMHO N900 with web client is better than Chrome on Android as web client, as well as N9 running everything locally (server and web client).

rcolistete 2014-05-06 04:21

Re: [Announce] IPython for Maemo 4 & 5 & 6
 
IPython 2.0.0 (01/04/2014) is now released for Saifish. See the topic "IPython (terminal, Notebook) for Sailfish".


All times are GMT. The time now is 09:14.

vBulletin® Version 3.8.8