using PlotlyJS, FileIO, Base64 n=255 I = [i for i in 0:n, j in 0:n] width=400; height=375 plt=Plot(heatmap(z=mod.(xor.(I, I'), 53), colorscale=colors.algae, showscale=false ), Layout(width=width, height=height, yaxis_autorange="reverse")) io = IOBuffer() PlotlyJS.savefig(io, plt; width=width, height=height, scale=1, format="png") bytes = take!(io) bs64_string= "data:image/png;base64,$(stringmime(MIME("image/png"), bytes))" #Display image from the bs64 string Plot(PlotlyJS.image(; source=bs64_string, hoverinfo="none"), Layout(xaxis_visible=false, yaxis_visible=false))