Skip to content

Commit

Permalink
Fix jupyter SDFV
Browse files Browse the repository at this point in the history
  • Loading branch information
phschaad committed Oct 31, 2024
1 parent 68ea1ef commit 0f24ab4
Show file tree
Hide file tree
Showing 6 changed files with 254 additions and 273 deletions.
7 changes: 5 additions & 2 deletions dace/sdfg/sdfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1464,8 +1464,11 @@ def _repr_html_(self):
var sdfg_{uid} = {sdfg};
</script>
<script>
WebSDFV.getInstance().init();
WebSDFV.getInstance().setSDFG(checkCompatLoad(parse_sdfg(sdfg_{uid})), null, false, "contents_{uid}");
new SDFGRenderer(
checkCompatLoad(parse_sdfg(sdfg_{uid})),
document.getElementById("contents_{uid}"),
undefined, null, null, false, null, null
);
</script>""".format(
# Dumping to a string so that Jupyter Javascript can parse it
# recursively
Expand Down
35 changes: 14 additions & 21 deletions tutorials/explicit.ipynb

Large diffs are not rendered by default.

112 changes: 48 additions & 64 deletions tutorials/getting_started.ipynb

Large diffs are not rendered by default.

40 changes: 23 additions & 17 deletions tutorials/numpy_frontend.ipynb

Large diffs are not rendered by default.

82 changes: 47 additions & 35 deletions tutorials/sdfg_api.ipynb

Large diffs are not rendered by default.

251 changes: 117 additions & 134 deletions tutorials/transformations.ipynb

Large diffs are not rendered by default.

0 comments on commit 0f24ab4

Please sign in to comment.