<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 16 July 2014 09:47, TARUN GABA <span dir="ltr"><<a href="mailto:tarun.gaba7@gmail.com" target="_blank">tarun.gaba7@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>    def my_func():</div><div>        HTML("<b>Some html</b>")</div>
<div>        some_widget.interact #display widget</div></blockquote></div><br><br></div><div class="gmail_extra">HTML() only creates an HTML display object, it doesn't actually display it. If you put it at the end of the cell, then it's is displayed automatically, but to display it anywhere else, you'll need to call IPython.display.display() on it.<br>

<br>Thomas<br></div></div>