to_delete.append(o)
for o in to_delete:
//print("removing: ", o)
outputs.remove(o)
return cell, resources
After Change
def preprocess_cell(self, cell, resources, index):
if "outputs" in cell:
outputs_ = [o for o in cell["outputs"] // list of dicts
if ("data" in o and "application/vnd.jupyter.widget-view+json" not in o["data"])
]
cell["outputs"] = outputs_