[IPython-dev] Dynamically changing the prompt from within a magic

Thomas Kluyver takowl at gmail.com
Fri Aug 3 13:25:16 EDT 2012


On 3 August 2012 17:44, David Quigley <dpquigl at davequigley.com> wrote:
> I have a magic
> called prompt where if nothing is passed in it will print the format
> string for the prompt otherwise it will take the string save it off and
> apply it to the config structure passed into the class.

Also, I should mention the %config magic function, which can update
any configurable variable like this:

%config PromptManager.in_template = ">>>"

Thomas



More information about the IPython-dev mailing list