<jupyter_start><jupyter_text>Run the cell below (shift+enter)<jupyter_code>from ipywidgets import widgets
from IPython.display import display, clear_output
from jupyterthemes import get_themes
from jupyterthemes.stylefx import set_nb_theme

def update_theme(change):
    """ display chosen theme from dropdown menu """
    name = change['new']
    html_css = set_nb_theme(name)
    display(html_css)

themes = get_themes()
theme_sel = widgets.Dropdown(options=themes, description='Select a Theme:')
theme_sel.observe(update_theme, names=['selected_label'], type='change')<jupyter_output><empty_output><jupyter_text>Run cell below and select a theme<jupyter_code># start with first theme in themes list
display(theme_sel)
set_nb_theme(themes[0])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09819121447028424, 'fraction_numerical': 0.0012919896640826874, 'mean_word_length': 7.908045977011494, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '49328', 'license': 'MIT', 'n_tokens_mistral': 263, 'n_tokens_neox': 252, 'n_words': 59, 'path': 'index.ipynb', 'repo_name': 'AlgorexHealth/jupyter-themes', 'size': '774'}