I want to create multiple check-boxes in jupyter notebook using variables taken from a list (preferably using ipython widgets). For example, list=['value1','value2'], then there should be 2 check boxes displayed. If the list contains 3 values, there should be 3 check boxes. I tried using the for loop this way:
for i in list:
widgets.Checkbox(
value=True,
description=i,
disabled=False,
indent=False
)
But, no output comes out. Can anyone please help me out here? Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire