Skip to content

Commit

Permalink
use text/html when displaying svg
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleve committed Jan 30, 2025
1 parent f998fbc commit 470d307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colomoto_jupyter/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ def install_default_formatters():
ip = get_ipython()
if HAS_NETWORKX:
# nxgraph to svg
svg_formatter = ip.display_formatter.formatters["image/svg+xml"]
svg_formatter = ip.display_formatter.formatters["text/html"]
svg_formatter.for_type(nx.Graph, svg_of_graph)

0 comments on commit 470d307

Please sign in to comment.