klass.widgets package

klass.widgets.search_ipywidget module

format_classification_text(search_class)

Format the classifications from a search into a html-string that can be used in the widget results.

Parameters:

search_class (KlassSearchClassifications) – The search-results.

Returns:

The formatted html-string.

Return type:

str

search_classification(no_dupes=True)

Open a GUI in Jupyter Notebooks using ipywidgets.

Lets you search for terms and copy sample code out, that’ll let you get data from the classification.

Parameters:

no_dupes (bool) – To include duplicate results or not in the result. Dupes are caused by multiple languages being returned.

Returns:

Containing the nested ipywidgets-GUI. Jupyter will automatically display it.

Return type:

widgets.VBox