ipython

What is your favorite IPython feature?

I've been learning (and enjoying learning!) Python via the IPython interactive shell recently... What's your favorite feature in IPython? Are there any tips and tricks you've picked up that other people might not know about? ...

In IPython how do I create aliases for %magics?

Let's say I want to create the alias %xed for %edit -x. How would I do it? ...

emacs 23 and iPython

Is there anyone out there using iPython with emacs 23? The documents on the emacs wiki are a bit of a muddle and I would be interested in hearing from anyone using emacs for Python development. Do you use the download python-mode and ipython.el? What do you recommend? ...

How to force iPython to use an older version of Python ?

I am running an Ubuntu 8.10, using Python 2.5 out of the box. This is fine from the system point of view, but I need Python2.4 since I dev on Zope / Plone. Well, installing python2.4 is no challenge, but I can't find a (clean) way to make iPython use it : no option in the man nor in the config file. Before, there was a ipython2.4 packa...

How do I use IPython as my emacs python interpreter

I'm running Emacs 22.1.1 and IPython 0.9.1 on OS X and I'd like to be able to run lines/methods/snippets of Python code from my current buffer on demand inside an IPython interpreter. What do I need to do to get this working? ...

Advice regarding IPython + MacVim Workflow

I've just found IPython and I can report that I'm in deep love. And the affection was immediate. I think this affair will turn into something lasting, like the one I have with screen. Ipython and screen happen to be the best of friends too so it's a triangular drama. Purely platonic, mind you. The reason IPython hits the soft spots with...

How do I make IPython organize tab completion possibilities by class?

When an object has hundreds of methods, tab completion is hard to use. More often than not the interesting methods are the ones defined or overridden by the inspected object's class and not its base classes. How can I get IPython to group its tab completion possibilities so the methods and properties defined in the inspected object's cl...

How can I check the memory usage of objects in ipython?

Duplicate http://stackoverflow.com/questions/33978/find-out-how-much-memory-is-being-used-by-an-object-in-python I am using ipython to run my code. I wonder if there is any module or command which allow me to check the memory usage of an object. For instance: 1> a = range(10000) 2> %memusage a 1MB Something like %memusage and r...

Unable to set iPython to use 2.6.1 Python

I have installed the newest iPython in Mac. However, it uses the Python verion 2.5.1. I installed the Python 2.6.1 by MacPython package at here. How can I make my iPython to use Python 2.6.1? I am not sure where the MacPython package exactly installed the newest Python. The newest Python should somehow put the PATH so that iPyhon can...

Unable to set IPython default login shell

I installed IPython to my Mac by MacPorts. I can run it by $ IPython, by not as a login shell. I have tried to find IPython's directory, which I could then put to my terminal's settings, unsuccessfully by locate /*IPython I did not manage to find it even by whereis. How can you set IPython the default login shell? ...

How to configure IPython to use gvim on Windows?

This really looks like something I should be able to find on Google, but for some reason I can't make heads or tails of it. There's the EDITOR environment variable, the ipy_user_conf.py file, the ipythonrc file, some weird thing about running gvim in server mode and a bunch of other stuff I can't wrap my head around (probably because of ...

Line-wrapping problems with IPython shell

If I have run a long line in IPython, and try and recall it (using the up-arrow) or backspace beyond the start of the current line, it displays incorrectly (all smushed into one line) For example, in the following session I wrote a long line [1], entered a somewhat-blank line [2], then up-arrowed twice to get the print statement on line...

Installing ipython with readline on the mac

I am using ipython on Mac OS 10.5 with python 2.5.1 (I would actually like to use ipython for 2.6.1, but it doesn't seem to be available?) I installed ipython via easy_install. It works but is missing gnu readline (needed for nice searching of command line history with ctrl-R, etc.) I found a blog post and other sources saying this cou...

How to scroll automaticaly within a Tkinter message window

Hello together, I wrote the following class for producing "monitoring" output within an extra window. Unfortunately it doesn't scroll automatically down to the most recent line. What is wrong? As I also have problems with Tkinter and ipython: how would an equivalent implementation with qt4 look like? Here is the code: import Tkinte...

Unable to make IPython to read shell variables

I run the command in IPython cd $cs<TAB> but it does not allow me to expand the path. How can you make IPython to read shell variables? ...

Is there an ipython equivalent for erlang?

Coming from Python I am looking for some "easy to try out" shell like Python has with ipython (preferably with Emacs support). In the Erlang shell you always have to first compile (c(...)) which slows down the experimental phase very much. ...

Strange python behaviour

I was bored and playing around with the ipython console and came upon the following behaviour I don't really understand In [1]: 2**2 Out[1]: 4 In [2]: 2**2**2 Out[2]: 16 In [3]: 2**2**2**2 Out[3]: 65536 In [4]: 2**2**2**2**2 The answer to [4] is not 4294967296L, it's a very long number, but I can't really figure out why. The numbe...

how to integrate ZSH and (i)python ?

I have been in love with zsh for a long time, and more recently I have been discovering the advantages of the ipython interactive interpreter over python itself. Being able to cd, to ls, to run or to ! is indeed very handy. But now it feels weird to have such a clumsy shell when in ipython, and I wonder how I could integrate my zsh and m...

IPython Modules

I have a few IPython scripts which have redundant functionality. I would like to refactor the common functionality into one module and include that modules in the existing script. The problem is it cannot be made a python module as the code uses Ipython's language extensions (!, $ etc). Is it possible to make a module having IPython code...

using profiles in iPython and Django

I've got a Django product I'm using iPython to interact with. I'm trying to have modules automatically loaded when I start a shell: python manage.py shell I've copied .ipython/ipythonrc to the root directory of the project and added to the file: import_some module_name model1 model2 However, when I start the shell, these names are...