473,770 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

should i switch to IPYTHON interpreter? What is the killer feature of it?

I know IPython is another interpreter for Python and was wondering
what people liked about it and if I should switch to it.

If it is so good then why is it not part of the standard Python
tarball?

Chris
Jul 18 '05
14 3010
дамјан г. wrote:

Put this in ~/.pythonrc, and setup the PYTHONSTARTUP environment variable to
point to it: export PYTHONSTARTUP=~/.pythonrc
# ~/.pythonrc
# enable syntax completion
try:
import readline
except ImportError:
print "Module readline not available."
else:
import rlcompleter
readline.parse_ and_bind("tab: complete")


I say thank you ! This works like a charm.
Somehow I've never discovered rlcompleter... :-)

--Irmen

Jul 18 '05 #11
Dang Griffith <no*****@noemai l4u.com> writes:
On Wed, 10 Dec 2003 11:19:21 +0100, Irmen de Jong
<irmen@-NOSPAM-REMOVETHIS-xs4all.nl> wrote:
Sean Richards wrote:

Tab completion for keywords and methods etc (you can get this in the
standard python shell as well of course)


You can? How?

--Irmen


Press tab after typing part of the keyword/method.

This assumes you're *not* using Win32. The documentation says that
IPython requires the GNU readline function, which I guess isn't
available with Win32. Neither is color highlighting.

--dang


Actually you can get all this on win32 if you use the cvs version of
IPython and Gary Bishop's Python readline module. There is a URL
and instructions on how to set it up here.
http://www.scipy.net/pipermail/ipyth...er/000094.html
The Python readline module needs ctypes so get that as well.
Works with Python 22 and 23 and gives you readline functionality and
colour highlighting when using IPython under win32.

Sean
--
"Hver sin smak", sa vintapperen, han drakk mens de andre sloss.
Jul 18 '05 #12
?????? ?. <mk@net.mail.pe nguinista> wrote:
# ~/.pythonrc
# enable syntax completion
try:
import readline
except ImportError:
print "Module readline not available."
else:
import rlcompleter
readline.parse_ and_bind("tab: complete")


This will work on win32 as well if you download ctypes and then my
python implementation of gnu readline from

http://prdownloads.sourceforge.net/u...1.zip?download

It also includes the ability to translate ascii color escapes into
colors on windows for use with iPython.

gb

Jul 18 '05 #13
Christian Seberino wrote:
I know IPython is another interpreter for Python and was wondering
what people liked about it and if I should switch to it.
As the ipython developer, you could say that I'm biased :) But you could
simply try it and see if you like it. It's a simple python package with no C
dependencies (under *nix), so getting it going is pretty straightforward .

I personally can't stand using the standard python shell anymore, which to me
feels like a crippled toy. But YMMV.

As Sean pointed, some of its nicer features (readline and color support) are
finally available to Windows XP/2k users, but only with CVS code. I'll be
making a new release soon-ish, but I want to clean some other outstanding
small bugs before that.
If it is so good then why is it not part of the standard Python
tarball?


I'd like it to, but I haven't even considered proposing such an idea. Right
now the ipython internals are a heinous mess, and nobody in their sane mind
would accept to maintain such a codebase. But there's hope for a rewrite with
the help of some dedicated users (I have very limited time for its
development). If we manage to clean it up completely, it might be conceivable
to propose it for the standard distribuition (not as a replacement, but as an
alternative: it's still slower to load and more complex code).

Regards,

Fernando.
Jul 18 '05 #14
"Gary Bishop" <gb@cs.unc.ed u> wrote in message news:<3f******* *@news.unc.edu> ...
?????? ?. <mk@net.mail.pe nguinista> wrote:
# ~/.pythonrc
# enable syntax completion
try:
import readline
except ImportError:
print "Module readline not available."
else:
import rlcompleter
readline.parse_ and_bind("tab: complete")


This will work on win32 as well if you download ctypes and then my
python implementation of gnu readline from

http://prdownloads.sourceforge.net/u...1.zip?download


Brilliant! Thank you very much indeed.

I would add a warning for those Windows users who aren't also Linux
users: by default you'll need to use Ctrl-D to exit the interpreter
rather than Ctrl-Z. (I imagine this could be changed; I've given the
source no more than a cursory glance).

TJG
Jul 18 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2652
by: Yaroslav Bulatov | last post by:
> Hi, > > Equis Uno wrote: > > > I use meta-x shell to start a shell and then once I see a shell > > prompt I enter the python command and I get a well-behaved python > > shell inside of emacs. > > > > I'm trying to figure out the best way to run ipython inside of emacs.
1
1515
by: Ismael Herrera | last post by:
Hi,i wonder if there is an editor or ide that has similar dinamic instrospection features as ipython? ,since i have failed to find one, i spend more time coding in ipython than in my editor. Well the feature i need the most is tab introspection since python has so many libraries and functions that is imposible to remember all of them.For example when i type urllib2.<tab> i get: urllib2.AbstractBasicAuthHandler urllib2.__class__...
3
1566
by: Dave Merrill | last post by:
Hi, I'm new to python, and ipython, but not to programming, having trouble getting ipython installed on windows 2000, python 233. Any help would be much appreciated; I'm sure I'm being some basic flavor of dense... First downloaded and installed PythonWin, readline and ctypes. They're all pretty clearly here and working, because I can run PythonWin, and from there, importing readline and ctypes works. Then downloaded ipython-0.6.6.zip...
28
2801
by: grahamd | last post by:
Who are the appropriate people to report security problems to in respect of a module included with the Python distribution? I don't feel it appropriate to be reporting it on general mailing lists.
1
1728
by: Jeremy Jones | last post by:
I've written an article on IPython which is now live on O'Reilly's ONLamp site at http://www.onlamp.com/pub/a/python/2005/01/27/ipython.html. All feedback is welcome. Regardless of what you may think of the article, I hope it encourages everyone to at least try out IPython. IPython has become an indispensible tool in my toolbox. I cannot say enough great things about it. Jeremy Jones
1
1954
by: Michael Tobis | last post by:
It appears that doctest does not work straightforwardly within iPython. I would like to be able to use doctest within a file conditionally, so that I can develop it within ipython and test it otherwise. It would seem that this would work: Python 2.4.1 (#2, Mar 31 2005, 00:05:10) on darwin
5
3283
by: Lou Pecora | last post by:
I installed the SciPy superpackage and have pylab, matplotlib, scipy, and numpy apparently running well. But I want to use matplotlib/pylab interactively. The instructions suggest doing this in IPython. But using ipython on the command line gives me an error. The system doesn't know the command. Apparently there is no ipython executable in one of the bin directories. I thought the superpackage would add that automatically, but I...
0
929
by: Karlo Lozovina | last post by:
Hi all! I have a runTest() function inside my module, which sets up and initializes lots of objects and performs some basic tests on them. Usually (from IPython) I just write `run my_module.py`, and then `runTest()`. But sometimes I would like to manually twiddle with objects runTest creates. Is there any way I can "return" all those objects local to runTest(), and have them available in IPython (or ordinary Python shell)? Thanks...
1
1102
by: Casey | last post by:
I'm running python 2.5.2 on WinXP. I've always used a GUI for interactive development, but I wanted to try out ipython which better supports matplotlib in this mode. Unfortunately, whenever I try to use help() I get the following error: (Sys) The system cannot find the file specified. "C:\documents" It turns out that the regular (python.exe) interpreter has the same problem. I have the HTML docs installed, my PYTHONDOCS environment
0
9619
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10102
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.