On Fri, Aug 5, 2011 at 9:49 PM, Min RK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com">benjaminrk@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
<br>
On Aug 5, 2011, at 18:42, Fernando Perez <<a href="mailto:fperez.net@gmail.com">fperez.net@gmail.com</a>> wrote:<br>
<br>
> Hi Arlindo,<br>
><br>
> On Fri, Aug 5, 2011 at 6:27 PM, Arlindo da Silva <<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>> wrote:<br>
>> Hi,<br>
>> Which property should I set at the qtconsole command line for redefining<br>
>> my prompt? That is, what is the equivalent of<br>
>> % ipython TerminalInteractiveShell.prompt_in1='xxx> '<br>
>> On Mac OS X 10.7 (Lion) with EPD 7.1-1, this produces no effect:<br>
>> % ipython-qtconsole ZMQInteractiveShell.prompt_in1='xxx> '<br>
>> while<br>
>> % ipython-qtconsole IPythonWidget.in_prompt='xxxx> '<br>
>> crashes the qtconsole.<br>
><br>
> No, unfortunately the Qt console right now has no support for prompt<br>
> configuration, they are hardcoded. We ran out of time for<br>
> implementing prompt declaration in the messaging protocol, so it's<br>
> still in the todo list, sorry about that.<br>
<br>
</div></div>Not true, it's c.IPythonWidget.in_prompt<br>
<br>
Look in ipython_qtconsole_config.py generated by `ipython profile create` for the options available.<br>
<br>
The same information can be seen with `ipython qtconsole --help-all`.<br>
<br></blockquote><div><br></div><div>Yes, I am able to redefine the prompt by editing ipython_qtconsole_config.py as you suggest. I was hopping I could do that from the command with something like:</div><div><br></div><div>
% ipython-qtconsole IPythonWidget.in_prompt='xxx> '</div><div><br></div><div>but this produces no effect. (I am writing a command line wrapper that I was hoping would not require any dedicated config.)</div><div>
<br></div><div> Thanks,</div><div><br></div><div> Arlindo</div><div> </div></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>