[IPython-dev] Applying arbitrary CSS to an IPython 3.0 widget
nathan12343 at gmail.com
Fri Mar 6 18:20:42 EST 2015
On Fri, Mar 6, 2015 at 3:05 PM, Nicholas Bollweg <nick.bollweg at gmail.com>
> 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)")
I'll go ahead and update the wiki with a more thorough example like this
> Pretty slick!
> 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
> IPython-dev mailing list
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev