044f5f26e1b661c74c6cb60aef2906a6e372a2f1,doc/nbconvert_filter.py,RemoveWidgetNotice,preprocess_cell,#RemoveWidgetNotice#Any#Any#Any#,10
Before Change
if "outputs" in cell:
outputs = cell["outputs"] // list
to_delete = []
for i, o in enumerate(outputs):
//print(o)
if "data" in o:
data = o["data"]
if "application/vnd.jupyter.widget-view+json" in data:
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_
return cell, resources
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: markovmodel/PyEMMA
Commit Name: 044f5f26e1b661c74c6cb60aef2906a6e372a2f1
Time: 2018-09-10
Author: m.scherer@fu-berlin.de
File Name: doc/nbconvert_filter.py
Class Name: RemoveWidgetNotice
Method Name: preprocess_cell
Project Name: tensorflow/lattice
Commit Name: 804c1dd6fac9e8f78e49c2169cc50761e63186a0
Time: 2018-02-21
Author: seungil.you@gmail.com
File Name: tensorflow_lattice/python/lib/keypoints_initialization.py
Class Name:
Method Name: load_keypoints_from_quantiles
Project Name: jazzband/django-debug-toolbar
Commit Name: e403821323d529980407c05da77409c7e1c5c2a0
Time: 2008-09-08
Author: rob@cogit8.org
File Name: debug_toolbar/panels/headers.py
Class Name: HeaderDebugPanel
Method Name: content