In [1]
import plotly.graph_objs as go
from merkury.utils import output_plotly
intro = """
# Plotly usage

Example of how to include plotly plots in merkury HTML reports.
"""
print(intro)
#MARKDOWN
Out [1]

Plotly usage

Example of how to include plotly plots in merkury HTML reports.

In [2]
data = [go.Scatter(
    x = [4, 5, 6, ],
    y = [78, 70, 74, ],
)]
fig = go.Figure(data=data)
print(output_plotly(fig))
#HTML
Out [2]
In [3]
print(output_plotly(fig, interactive=False))
#HTML
Out [3]