diff --git a/plotly/io/_base_renderers.py b/plotly/io/_base_renderers.py index 9d4ac1f563c..25cadac4f1a 100644 --- a/plotly/io/_base_renderers.py +++ b/plotly/io/_base_renderers.py @@ -273,7 +273,7 @@ def activate(self): if self.connected: script = """\ - @@ -288,7 +288,7 @@ def activate(self): # If not connected then we embed a copy of the plotly.js # library in the notebook script = """\ - diff --git a/plotly/io/_html.py b/plotly/io/_html.py index 3e7b89c7d2f..a9ff68c23ea 100644 --- a/plotly/io/_html.py +++ b/plotly/io/_html.py @@ -22,12 +22,12 @@ def _generate_sri_hash(content): # Build script to set global PlotlyConfig object. This must execute before # plotly.js is loaded. _window_plotly_config = """\ -""" _mathjax_config = """\ -""" @@ -282,7 +282,7 @@ def to_html( elif include_plotlyjs: load_plotlyjs = """\ {win_config} - \ + \ """.format(win_config=_window_plotly_config, plotlyjs=get_plotlyjs()) # ## Handle loading/initializing MathJax ## @@ -323,7 +323,7 @@ def to_html( {load_plotlyjs}\
\ - \ diff --git a/plotly/offline/offline.py b/plotly/offline/offline.py index bf94f03ecd8..161cf85b4f3 100644 --- a/plotly/offline/offline.py +++ b/plotly/offline/offline.py @@ -70,7 +70,7 @@ def get_plotlyjs(): >>> html = ''' ... ... - ... + ... ... ... ... {div1} @@ -89,7 +89,7 @@ def get_plotlyjs(): def _build_resize_script(plotdivid, plotly_root="Plotly"): resize_script = ( - '""" _mathjax_config = """\ -""" diff --git a/tests/test_core/test_offline/test_offline.py b/tests/test_core/test_offline/test_offline.py index b814e28f15c..2155ccf1c98 100644 --- a/tests/test_core/test_offline/test_offline.py +++ b/tests/test_core/test_offline/test_offline.py @@ -35,7 +35,7 @@ PLOTLYJS = plotly.offline.get_plotlyjs() plotly_config_script = """\ -""" cdn_script = ''.format( diff --git a/tests/test_io/test_renderers.py b/tests/test_io/test_renderers.py index 43dd250d8b7..ac204d5d9eb 100644 --- a/tests/test_io/test_renderers.py +++ b/tests/test_io/test_renderers.py @@ -306,7 +306,7 @@ def test_repr_html(renderer): sri_hash = _generate_sri_hash(plotlyjs_content) template = ( - '
\n " ' ' '