<html><body bgcolor="#FFFFFF"><div>Command-line args are prefixed with '--', so you want:</div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">% ipython-qtconsole --IPythonWidget.in_prompt='xxx> '</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">There are zero options in IPython that cannot be set from the command-line.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">Note that this particular prompt won't work of you are using 0.11 and not trunk, because the released version doesn't allow prompts that don't have '%i' for the prompt number. This has been fixed.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span>-MinRK</div><div><br>On Aug 6, 2011, at 7:51, Arlindo da Silva <<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>On Fri, Aug 5, 2011 at 9:49 PM, Min RK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com"><a href="mailto:benjaminrk@gmail.com">benjaminrk@gmail.com</a></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"><a href="mailto:fperez.net@gmail.com">fperez.net@gmail.com</a></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"><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a></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"><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a></a><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>IPython-User mailing list</span><br><span><a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a></span><br><span><a href="http://mail.scipy.org/mailman/listinfo/ipython-user">http://mail.scipy.org/mailman/listinfo/ipython-user</a></span><br></div></blockquote></body></html>