Options now drop invalid keywords from kwargs
@@ -364,7 +364,7 @@ class Options(param.Parameterized):
self.warning("Invalid options %s, valid options are: %s"
% (repr(invalid_kws), str(allowed_keywords)))
- self.kwargs = kwargs
+ self.kwargs = {k:v for k,v in kwargs.items() if k not in invalid_kws}
self._options = self._expand_options(kwargs)
allowed_keywords = (allowed_keywords if isinstance(allowed_keywords, Keywords)
else Keywords(allowed_keywords))
