We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 886d82e commit 23b1e12Copy full SHA for 23b1e12
1 file changed
holoviews/ipython/display_hooks.py
@@ -21,6 +21,7 @@
21
from ..core.io import FileArchive
22
from ..core.util import mimebundle_to_html
23
from ..plotting import Plot
24
+from ..plotting.renderer import MIME_TYPES
25
from ..util.settings import OutputSettings
26
from .magics import OptsMagic, OutputMagic
27
@@ -143,9 +144,9 @@ def wrapped(element):
143
144
if mimebundle is None:
145
return {}, {}
146
mime_data, mime_metadata = mimebundle
- if 'text/javascript' in mime_data:
147
+ if MIME_TYPES['js'] in mime_data:
148
mime_data['text/html'] = mimebundle_to_html(mime_data)
- del mime_data['text/javascript']
149
+ del mime_data[MIME_TYPES['js']]
150
151
# Only want to add to the archive for one display hook...
152
disabled_suffixes = ['png_display', 'svg_display']
0 commit comments