Hi,<div><br></div><div>I have been working on ipython for around a week and it is very nice. I have installed the ipython 0.13b (dev). The new notebook interface is very cool and impressive. I tried this out:</div><div><br>
</div><div>[code]</div><div><div>from IPython.core.display import HTML</div><div><br></div><div>class A(HTML):</div><div> def __init__(self):</div><div> self.wrong = 3</div><div> self.correct = 5</div><div>
</div><div> def calc(self):</div><div> self.wrong += 2</div><div> self.correct -= 1</div><div> </div><div> def _repr_html_(self):</div><div> return "<i>wrong</i><b>%i</b><i>correct</i><b>%i</b>"%(self.wrong, self.correct)</div>
</div><div><br></div><div>A()</div><div>[/code]</div><div><br></div><div>When the code is executed, the output is not html, it displays as "wrong3correct5"<b> </b>(But when the same is pasted in this email, it displays properly...<b> </b><i>wrong</i><b>3</b><i>correct</i><b>5</b>, which indicates that the browser is not rendering the italics and the bold properly).</div>
<div><br></div><div>When I tried with:</div><div>[code]</div><div>return "<table><tr><td>wrong</td><td>%i</td></tr><tr><td>correct</td><td>%i</td></tr></table></b>"%(self.wrong, self.correct)</div>
<div>[/code]</div><div>It shows:</div><div><div tabindex="2" class="cell border-box-sizing code_cell vbox ui-widget-content ui-corner-all"><div class="output vbox"><div class="hbox output_area"><div class="prompt output_prompt">
Out[4]: (in table)</div><div class="box_flex1 output_subarea output_html rendered_html"><table><tbody><tr><td>wrong</td><td>3</td></tr><tr><td>correct</td><td>5</td></tr></tbody></table></div></div></div></div><div tabindex="2" class="cell border-box-sizing code_cell vbox">
<div class="input hbox"><div class="prompt input_prompt"><br></div><div class="input_area box-flex1"><div class="CodeMirror"><div style="overflow:hidden;width:3px;height:0px"><textarea style="padding-top:0px;padding-left:0px;width:1px;height:1em"></textarea></div>
</div></div></div></div></div><div>What could be the issue?</div>