widget_to_html_string#

widget_to_html_string(widget: Widget, title: str = '', requirejs: bool = True, connected: bool = True, full_html: bool = True) str[source]#

Transform widget into html string.

Parameters
widget: Widget

The widget to save as html.

title: str

The title of the html file.

requirejs: bool , default: True

If to save with all javascript dependencies

connectedbool, default True

whether to use CDN or not

full_html: bool, default True

whether to return full html page or not

Returns
str