def generate_style(python_style, ui_style):
    assert isinstance(python_style, dict)
    assert isinstance(ui_style, dict)

    styles = {}
    styles.update(DEFAULT_STYLE_EXTENSIONS)
    styles.update(python_style)
    styles.update(ui_style)

    return style_from_dict(styles)


# Code style for Windows consoles. They support only 16 colors,
# so we choose a combination that displays nicely.
Generate Pygments Style class from two dictionaries
dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/style.py/generate_style