[IPython-dev] HTML display does not works when using Widgets

MinRK benjaminrk at gmail.com
Thu Jul 17 12:55:28 EDT 2014


HTML("some html") doesn't trigger any display, it just creates the object.
If you want to display it, call `display(HTML("some html"))`


On Wed, Jul 16, 2014 at 9:47 AM, TARUN GABA <tarun.gaba7 at gmail.com> wrote:

> Hi all
>
> I am working on a module, which requires use of IPython widgets and some
> rendered HTML.
> I am using the dev branch from the repository.
>
>     $ ipython --version
>     3.0.0-dev
>
>
>
> this is the code snippet, I am trying to implement:
>
>     def my_func():
>         HTML("<b>Some html</b>")
>         some_widget.interact #display widget
>
> When I call this function from the notebook, only widget is rendered on
> the output cell, not the HTML.
> I guess that might be because widgets use different "type" of output method
> compared to usual output method.
>
> Can anybody please point me to the best way to implement it(both HTML and
> widget in same output cell.)
>
> Thanks
>
> Tarun Gaba
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140717/60434106/attachment.html>


More information about the IPython-dev mailing list