Skip to content

Commit

Permalink
fix plotly export html
Browse files Browse the repository at this point in the history
  • Loading branch information
quangduong109 committed Sep 13, 2021
1 parent 93e19cb commit e51de23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybloqs/block/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def __init__(self, contents, plotly_kwargs=None, **kwargs):
raise ValueError("Expected plotly.graph_objs.graph_objs.Figure type but got %s", type(contents))

plotly_kwargs = plotly_kwargs or {}
prefix = "<script type=text/javascript src='https://cdn.plot.ly/plotly-2.2.0.min'>if (typeof require !== 'undefined') {var Plotly=require('plotly')}</script>"
prefix = "<script type=text/javascript src='https://cdn.plot.ly/plotly-2.4.2.min.js'>if (typeof require !== 'undefined') {var Plotly=require('plotly')}</script>"
self._contents = prefix + po.plot(contents, include_plotlyjs=False, output_type='div', **plotly_kwargs)

def _write_contents(self, container, *args, **kwargs):
Expand Down

0 comments on commit e51de23

Please sign in to comment.