widget_to_html#

widget_to_html(widget: Widget, html_out: Union[str, TextIOWrapper], title: str = '', requirejs: bool = True, connected: bool = True, full_html: bool = True)[source]#

Save widget as html file.

Parameters
widget: Widget

The widget to save as html.

html_out: filename or file-like object

The file to write the HTML output to.

title: str , default: None

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