Cufflinks not accepting any theme value (giving layout bgcolor error)

getting this error for cufflinks iplot, this same code was working yesterday, suddenly it has stopped accepting the theme. Same error with any theme value I put.


ValueError Traceback (most recent call last)
in ()
3
4 cf.set_config_file(offline=False, world_readable=True, theme=‘polar’)
----> 5 yearly_group.iplot(kind=‘bar’, barmode=‘overlay’, nticks=8, showgrid=False, title=‘Conversion Overview’)

~/anaconda3/lib/python3.6/site-packages/cufflinks/plotlytools.py in _iplot(self, kind, data, layout, filename, sharing, title, xTitle, yTitle, zTitle, theme, colors, colorscale, fill, width, dash, mode, interpolation, symbol, size, barmode, sortbars, bargap, bargroupgap, bins, histnorm, histfunc, orientation, boxpoints, annotations, keys, bestfit, bestfit_colors, mean, mean_colors, categories, x, y, z, text, gridcolor, zerolinecolor, margin, labels, values, secondary_y, secondary_y_title, subplots, shape, error_x, error_y, error_type, locations, lon, lat, asFrame, asDates, asFigure, asImage, dimensions, asPlot, asUrl, online, **kwargs)
761 bargap=bargap,bargroupgap=bargroupgap,annotations=annotations,gridcolor=gridcolor,
762 dimensions=dimensions,
–> 763 zerolinecolor=zerolinecolor,margin=margin,is3d=‘3d’ in kind,**l_kwargs)
764
765 if not data:

~/anaconda3/lib/python3.6/site-packages/cufflinks/tools.py in getLayout(kind, theme, title, xTitle, yTitle, zTitle, barmode, bargap, bargroupgap, margin, dimensions, width, height, annotations, is3d, **kwargs)
199
200 theme_data = getTheme(theme)
–> 201 layout=go.Layout(theme_data[‘layout’])
202 layout[‘xaxis1’].update({‘title’:xTitle})
203 layout[‘yaxis1’].update({‘title’:yTitle})

~/anaconda3/lib/python3.6/site-packages/plotly/graph_objs/_layout.py in init(self, arg, angularaxis, annotations, autosize, bargap, bargroupgap, barmode, barnorm, boxgap, boxgroupgap, boxmode, calendar, colorway, datarevision, direction, dragmode, font, geo, grid, height, hiddenlabels, hiddenlabelssrc, hidesources, hoverdistance, hoverlabel, hovermode, images, legend, mapbox, margin, orientation, paper_bgcolor, plot_bgcolor, polar, radialaxis, scene, selectdirection, separators, shapes, showlegend, sliders, spikedistance, ternary, title, titlefont, updatemenus, violingap, violingroupgap, violinmode, width, xaxis, yaxis, **kwargs)
3541 self.images = images if images is not None else v
3542 v = arg.pop(‘legend’, None)
-> 3543 self.legend = legend if legend is not None else v
3544 v = arg.pop(‘mapbox’, None)
3545 self.mapbox = mapbox if mapbox is not None else v

~/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in setattr(self, prop, value)
3550 if match is None:
3551 # Set as ordinary property
-> 3552 super(BaseLayoutHierarchyType, self).setattr(prop, value)
3553 else:
3554 # Set as subplotid property

~/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in setattr(self, prop, value)
2664 prop in self._validators):
2665 # Let known properties and private properties through
-> 2666 super(BasePlotlyType, self).setattr(prop, value)
2667 else:
2668 # Raise error on unknown public properties

~/anaconda3/lib/python3.6/site-packages/plotly/graph_objs/_layout.py in legend(self, val)
1182 @legend.setter
1183 def legend(self, val):
-> 1184 self[‘legend’] = val
1185
1186 # mapbox

~/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in setitem(self, prop, value)
3535 if match is None:
3536 # Set as ordinary property
-> 3537 super(BaseLayoutHierarchyType, self).setitem(prop, value)
3538 else:
3539 # Set as subplotid property

~/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in setitem(self, prop, value)
2627 # ### Handle compound property ###
2628 if isinstance(validator, CompoundValidator):
-> 2629 self._set_compound_prop(prop, value)
2630
2631 # ### Handle compound array property ###

~/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in _set_compound_prop(self, prop, val)
2925 validator = self._validators.get(prop)
2926 # type: BasePlotlyType
-> 2927 val = validator.validate_coerce(val)
2928
2929 # Save deep copies of current and new states

~/anaconda3/lib/python3.6/site-packages/_plotly_utils/basevalidators.py in validate_coerce(self, v)
1783
1784 elif isinstance(v, dict):
-> 1785 v = self.data_class(**v)
1786
1787 elif isinstance(v, self.data_class):

~/anaconda3/lib/python3.6/site-packages/plotly/graph_objs/layout/_legend.py in init(self, arg, bgcolor, bordercolor, borderwidth, font, orientation, tracegroupgap, traceorder, x, xanchor, y, yanchor, **kwargs)
500 # ----------------------------------
501 v = arg.pop(‘bgcolor’, None)
–> 502 self.bgcolor = bgcolor if bgcolor is not None else v
503 v = arg.pop(‘bordercolor’, None)
504 self.bordercolor = bordercolor if bordercolor is not None else v

~/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in setattr(self, prop, value)
2664 prop in self._validators):
2665 # Let known properties and private properties through
-> 2666 super(BasePlotlyType, self).setattr(prop, value)
2667 else:
2668 # Raise error on unknown public properties

~/anaconda3/lib/python3.6/site-packages/plotly/graph_objs/layout/_legend.py in bgcolor(self, val)
62 @bgcolor.setter
63 def bgcolor(self, val):
—> 64 self[‘bgcolor’] = val
65
66 # bordercolor

~/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in setitem(self, prop, value)
2636 # ### Handle simple property ###
2637 else:
-> 2638 self._set_prop(prop, value)
2639
2640 # Handle non-scalar case

~/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in _set_prop(self, prop, val)
2866 # ------------
2867 validator = self._validators.get(prop)
-> 2868 val = validator.validate_coerce(val)
2869
2870 # val is None

~/anaconda3/lib/python3.6/site-packages/_plotly_utils/basevalidators.py in validate_coerce(self, v, should_raise)
1068 validated_v = self.vc_scalar(v)
1069 if validated_v is None and should_raise:
-> 1070 self.raise_invalid_val(v)
1071
1072 v = validated_v

~/anaconda3/lib/python3.6/site-packages/_plotly_utils/basevalidators.py in raise_invalid_val(self, v)
214 typ=type_str(v),
215 v=repr(v),
–> 216 valid_clr_desc=self.description()))
217
218 def raise_invalid_elements(self, invalid_els):

ValueError:
Invalid value of type ‘builtins.str’ received for the ‘bgcolor’ property of layout.legend
Received value: ‘polardust’

The 'bgcolor' property is a color and may be specified as:
  - A hex string (e.g. '#ff0000')
  - An rgb/rgba string (e.g. 'rgb(255,0,0)')
  - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
  - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
  - A named CSS color:
        aliceblue, antiquewhite, aqua, aquamarine, azure,
        beige, bisque, black, blanchedalmond, blue,
        blueviolet, brown, burlywood, cadetblue,
        chartreuse, chocolate, coral, cornflowerblue,
        cornsilk, crimson, cyan, darkblue, darkcyan,
        darkgoldenrod, darkgray, darkgrey, darkgreen,
        darkkhaki, darkmagenta, darkolivegreen, darkorange,
        darkorchid, darkred, darksalmon, darkseagreen,
        darkslateblue, darkslategray, darkslategrey,
        darkturquoise, darkviolet, deeppink, deepskyblue,
        dimgray, dimgrey, dodgerblue, firebrick,
        floralwhite, forestgreen, fuchsia, gainsboro,
        ghostwhite, gold, goldenrod, gray, grey, green,
        greenyellow, honeydew, hotpink, indianred, indigo,
        ivory, khaki, lavender, lavenderblush, lawngreen,
        lemonchiffon, lightblue, lightcoral, lightcyan,
        lightgoldenrodyellow, lightgray, lightgrey,
        lightgreen, lightpink, lightsalmon, lightseagreen,
        lightskyblue, lightslategray, lightslategrey,
        lightsteelblue, lightyellow, lime, limegreen,
        linen, magenta, maroon, mediumaquamarine,
        mediumblue, mediumorchid, mediumpurple,
        mediumseagreen, mediumslateblue, mediumspringgreen,
        mediumturquoise, mediumvioletred, midnightblue,
        mintcream, mistyrose, moccasin, navajowhite, navy,
        oldlace, olive, olivedrab, orange, orangered,
        orchid, palegoldenrod, palegreen, paleturquoise,
        palevioletred, papayawhip, peachpuff, peru, pink,
        plum, powderblue, purple, red, rosybrown,
        royalblue, saddlebrown, salmon, sandybrown,
        seagreen, seashell, sienna, silver, skyblue,
        slateblue, slategray, slategrey, snow, springgreen,
        steelblue, tan, teal, thistle, tomato, turquoise,
        violet, wheat, white, whitesmoke, yellow,
        yellowgreen