Skip to content

Commit

Permalink
Fixed JS MIME handling
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 30, 2019
1 parent 886d82e commit 23b1e12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions holoviews/ipython/display_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from ..core.io import FileArchive
from ..core.util import mimebundle_to_html
from ..plotting import Plot
from ..plotting.renderer import MIME_TYPES
from ..util.settings import OutputSettings
from .magics import OptsMagic, OutputMagic

Expand Down Expand Up @@ -143,9 +144,9 @@ def wrapped(element):
if mimebundle is None:
return {}, {}
mime_data, mime_metadata = mimebundle
if 'text/javascript' in mime_data:
if MIME_TYPES['js'] in mime_data:
mime_data['text/html'] = mimebundle_to_html(mime_data)
del mime_data['text/javascript']
del mime_data[MIME_TYPES['js']]

# Only want to add to the archive for one display hook...
disabled_suffixes = ['png_display', 'svg_display']
Expand Down

0 comments on commit 23b1e12

Please sign in to comment.