You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The colour module doesn't appear to be part of the standard conda installation. Please consider rewriting the Importing%20revealjs%20themes.ipynb notebook not to use it. If you are only dealing with #abc and #aabbcc style RGB specs, you could just use a simple function like
c_re = re.compile('^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$')
def repeat_chars(s,k):
return ''.join(c*k for c in s)
def v2color(v):
m = c_re.search(v)
if not m:
return None
rgb = m.group(1)
if len(rgb) == 3:
rgb = repeat_chars(rgb,2)
return tuple(int(rgb[k:k+2],16) for k in xrange(0,6,2))
The text was updated successfully, but these errors were encountered:
The
colour
module doesn't appear to be part of the standard conda installation. Please consider rewriting the Importing%20revealjs%20themes.ipynb notebook not to use it. If you are only dealing with#abc
and#aabbcc
style RGB specs, you could just use a simple function likeThe text was updated successfully, but these errors were encountered: