[IPython-user] Prompt

Frédéric Mantegazza mantegazza at ill.fr
Wed Mar 16 02:08:15 CST 2005

Le Mercredi 16 Mars 2005 08:53, Fernando.Perez at colorado.edu a écrit :

> Well, that's a very valid comment. The pysh profile simply enables a
> prompt which uses predefined special marks which get dynamically expanded
> at runtime. The actual list of available valid expansions lives in
> Prompts.py, it is the prompt_specials_color dictionary.  It looks like
> this:
> [...]

> Does this sound like a good solution to you?  Would it give you the kind
> of functionality you need?  Also Tom Locke, would this allow a cleaner
> prompt management than your current hack for logix?  If this approach
> addresses your concerns, I'm happy to implement it, as it's a relatively
> simple solution (in terms of effort) which also feels 'clean' to me
> design wise.
> Let me know what you all think before I commit to any coding along these
> lines.

Yes, this is OK for me ! As I said, I want to use the prompt as a little 
status bar. So I only need to put 2 or 3 values which will be taken and 
refreshed from my app. If your dict could be rebinded to a user dict, it 
should work.


More information about the IPython-user mailing list