File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -208,9 +208,6 @@ def html(self):
208
208
return ipywidgets .embed .widget_view_template .format (
209
209
view_spec = json .dumps (self ['view_spec' ]))
210
210
211
- def text (self ):
212
- return '[ widget ]'
213
-
214
211
215
212
class JupyterWidgetStateNode (docutils .nodes .Element ):
216
213
"""Appended to doctree if any Jupyter cell produced a widget as output.
@@ -625,17 +622,13 @@ def visit_widget_html(self, node):
625
622
self .body .append (node .html ())
626
623
raise docutils .nodes .SkipNode
627
624
628
- def visit_widget_text (self , node ):
629
- self .body .append (node .text ())
630
- raise docutils .nodes .SkipNode
631
-
632
625
app .add_node (
633
626
JupyterWidgetViewNode ,
634
627
html = (visit_widget_html , None ),
635
- latex = (visit_widget_text , None ),
636
- textinfo = (visit_widget_text , None ),
637
- text = (visit_widget_text , None ),
638
- man = (visit_widget_text , None ),
628
+ latex = (skip , None ),
629
+ textinfo = (skip , None ),
630
+ text = (skip , None ),
631
+ man = (skip , None ),
639
632
)
640
633
# JupyterWidgetStateNode holds the widget state JSON,
641
634
# but is only rendered in HTML documents.
You can’t perform that action at this time.
0 commit comments