In [4]:
from IPython.html import widgets
from ipbs.widgets import Panel
import ipbs.bootstrap as bs

In [5]:
list(bs.Context)


Out[5]:
['info', 'success', 'danger', 'default', 'primary', 'warning', 'link']

In [6]:
panel = Panel(
    title="Your Valued Comments",
    body="TBD",
    footer="©2014",
    context=bs.Context.info
)



In [7]:
panel

The heading, body, title, and footer can all be set to a single Unicode value or a list of Widgets.


In [8]:
panel.body = [
    widgets.Textarea(),
    widgets.Button(description="Submit")
]

In [9]:
from IPython.display import display
from ipbs.widgets import Panel
panel = Panel(body="foo")
panel