044f5f26e1b661c74c6cb60aef2906a6e372a2f1,doc/nbconvert_filter.py,RemoveWidgetNotice,preprocess_cell,#RemoveWidgetNotice#,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)
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: 11
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: 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
Project Name: estnltk/estnltk
Commit Name: fc3054e38f307f1ca20e04e156b0023ef2008866
Time: 2015-06-08
Author: komasing@gmail.com
File Name: estnltk/wordnet/wn.py
Class Name:
Method Name: all_synsets