Open kevinsneel opened 4 years ago
Both HTML implementations that I'm aware of (IPython and ipywidgets) appear to work fine. The latter seems to add some flexbox layout of its own.
from sidecar import Sidecar
sc = Sidecar(title='Sidecar Output')
from IPython.display import HTML
from ipywidgets import HTML as html
with sc:
display(HTML('hello there'))
display(html('<b>hello</b> there2'))
I believe this can be closed.
Here's my code. What am I doing wrong:
sc = Sidecar(title='Trace') ht = widgets.HTML( value="Hello World", placeholder='Some HTML', description='Some HTML', ) with sc: display(ht)
I have also tried:
sc = Sidecar(title='Trace') with sc: display(HTML(functools.reduce(lambda x, y: x+y, c.htmlStream())