UpSet.js has a basic support for a variant of Karnaugh Maps.
from ipywidgets import interact
from upsetjs_jupyter_widget import UpSetJSKarnaughMapWidget
import pandas as pd
This wrapper is implemented in Python 3 with mypy typings and generics. The generic type T
of the UpSetJSKarnaughMapWidget
is type of element that we wanna handle. In the following example we handle str
elements.
w = UpSetJSKarnaughMapWidget[str]()
dict_input = dict(one = ['a', 'b', 'c', 'e', 'g', 'h', 'k', 'l', 'm'], two = ['a', 'b', 'd', 'e', 'j'], three = ['a', 'e', 'f', 'g', 'h', 'i', 'j', 'l', 'm'])
w.from_dict(dict_input)
same as UpSetJSWidget
same as UpSetJSWidget
same as UpSetJSWidget
same as UpSetJSWidget
same as UpSetJSWidget