Skip to content

Commit

Permalink
New: in class diagrams, allow hovering and links in Jupyter
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-zeller committed Jun 30, 2024
1 parent f02ecb9 commit 2d3a592
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions notebooks/shared/ClassDiagram.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,10 @@
" dot.attr('node', shape='record', fontname=CLASS_FONT)\n",
" dot.attr('graph', rankdir='BT', tooltip=title)\n",
" dot.attr('edge', arrowhead='empty')\n",
"\n",
" # Hack to force rendering as HTML, allowing hovers and links in Jupyter\n",
" dot._repr_html_ = dot._repr_image_svg_xml\n",
"\n",
" edges = set()\n",
" overloaded_methods: Set[str] = set()\n",
"\n",
Expand Down

0 comments on commit 2d3a592

Please sign in to comment.