Skip to content

Commit

Permalink
Merge pull request #568 from opencybersecurityalliance/k2-apply-explain
Browse files Browse the repository at this point in the history
minor jupyter display fix
  • Loading branch information
subbyte authored Jul 28, 2024
2 parents f43e927 + acdeac9 commit eebe248
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def to_html_blocks(d: Display) -> Iterable[str]:
)
fig_buffer = BytesIO()
plt.savefig(fig_buffer, format="png")
img = data_uri = base64.b64encode(fig_buffer.getvalue()).decode("utf-8")
imgx = f'<img src="data:image/png;base64,{img}">'
yield imgx
img_base64 = base64.b64encode(fig_buffer.getvalue()).decode("utf-8")
img_tag = f'<img src="data:image/png;base64,{img_base64}">'
yield img_tag

if isinstance(graphlet.action, NativeQuery):
native_query = graphlet.action
Expand Down

0 comments on commit eebe248

Please sign in to comment.