css_raw=resources.css_raw,
css_files=resources.css_files,
)
except AttributeError:
warn(
"No Bokeh CSS Resources provided to template. If required you will need to provide them manually."
)
After Change
css_raw = getattr(resources, "css_raw", "")
css_files = getattr(resources, "css_files", "")
if css_raw or css_files:
bokeh_css = CSS_RESOURCES.render(css_raw=css_raw, css_files=css_files)
else:
warn("No Bokeh CSS Resources provided to template. If required you will need to provide them manually.")
script, div = components(plot_object)