[IPython-dev] Applying arbitrary CSS to an IPython 3.0 widget
nick.bollweg at gmail.com
Fri Mar 6 18:05:41 EST 2015
Here's the only usage as I found in the source:
container = Box(_dom_classes=['widget-interact'])
Looks like each tuple member is a triple of (selector, property, value):
txt = widgets.Text(value="Stratocaster")
txt._css = [
("input", "font-family", "Comic Sans MS"),
(None, "transform", "matrix(1, -0.2, 0, 1, 0, 0)")
On Fri, Mar 6, 2015 at 5:48 PM, Nathan Goldbaum <nathan12343 at gmail.com>
> Hi all,
> Does anyone have an example of how to apply CSS to a notebook widget in
> IPython 3.0? Old versions offered the set_css method, but that has been
> removed in the latest version.
> I see in the widget transition doc:
> that set_css has been superseded by the CSS attributes (works fine for
> most things, but not for obscure CSS settings) and the _dom_classes and
> _css tuples (not dictionaries as indicated in the transition doc). The
> latter seems perfect, but it's not clear to me how to use these tuples.
> Is there an example somewhere I can look at?
> IPython-dev mailing list
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev