<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 4 January 2013 23:19, Jimmie <span dir="ltr"><<a href="mailto:ipython@chaj.com" target="_blank">ipython@chaj.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
UsageError: argument -u/--units: invalid int value: u"'px'"<br>
<br>
Looking at the rmagic.py extensions source, it seems that argparse expects the value as an int which doesn't seem to make much sense to me since the rmagic doc (<a href="http://ipython.org/ipython-doc/dev/config/extensions/rmagic.html" target="_blank">http://ipython.org/ipython-<u></u>doc/dev/config/extensions/<u></u>rmagic.html</a>) states:<br>
<br>
-u UNITS, --units UNITS<br>
<br>
Units of png plotting device sent as an argument to png in R. One of [“px”,<br>
“in”, “cm”, “mm”].</blockquote></div><br></div><div class="gmail_extra">I think you're right. Would you like to make a pull request to fix it? Ideally, we should add a test for it as well - see <a href="https://github.com/ipython/ipython/blob/master/IPython/extensions/tests/test_rmagic.py">https://github.com/ipython/ipython/blob/master/IPython/extensions/tests/test_rmagic.py</a> for examples.<br>
<br>Thanks,<br>Thomas<br></div></div>