Skip to content

Commit

Permalink
Fix jupyter's version of SDFV (#1714)
Browse files Browse the repository at this point in the history
This requires spcl/dace-webclient#179 to be
merged before being ready.
  • Loading branch information
phschaad authored Oct 31, 2024
1 parent 2811e40 commit 945b5ce
Show file tree
Hide file tree
Showing 7 changed files with 255 additions and 275 deletions.
8 changes: 5 additions & 3 deletions dace/sdfg/sdfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1464,9 +1464,11 @@ def _repr_html_(self):
var sdfg_{uid} = {sdfg};
</script>
<script>
var sdfv_{uid} = new SDFV();
var renderer_{uid} = new SDFGRenderer(sdfv_{uid}, parse_sdfg(sdfg_{uid}),
document.getElementById('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
2 changes: 1 addition & 1 deletion dace/viewer/webclient
Submodule webclient updated 47 files
+2 −2 .github/workflows/build.yml
+1 −1 .github/workflows/gh-pages.yml
+2 −2 .github/workflows/test.yml
+6 −6 dist/sdfv.js
+1 −1 dist/sdfv.js.LICENSE.txt
+1 −1 dist/sdfv.js.map
+6 −6 dist/sdfv_jupyter.js
+1 −1 dist/sdfv_jupyter.js.LICENSE.txt
+2,255 −2,168 package-lock.json
+1 −1 package.json
+9 −3 scss/sdfv.scss
+1 −88 src/index.ts
+1,102 −0 src/layouter/layout.ts
+26 −3 src/layouter/state_machine/sm_layouter.ts
+3 −2 src/local_view/elements/map_node.ts
+3 −2 src/local_view/elements/memory_node.ts
+1 −1 src/local_view/graph/graph.ts
+2 −1 src/local_view/lview_parser.ts
+4 −4 src/overlay_manager.ts
+75 −125 src/overlays/avg_parallelism_overlay.ts
+74 −120 src/overlays/depth_overlay.ts
+18 −113 src/overlays/diff_overlay.ts
+162 −4 src/overlays/generic_sdfg_overlay.ts
+31 −95 src/overlays/logical_group_overlay.ts
+6 −73 src/overlays/memory_location_overlay.ts
+22 −101 src/overlays/memory_volume_overlay.ts
+72 −115 src/overlays/operational_intensity_overlay.ts
+20 −77 src/overlays/runtime_micro_seconds_overlay.ts
+71 −118 src/overlays/simulated_operational_intensity_overlay.ts
+78 −118 src/overlays/static_flops_overlay.ts
+3 −2 src/renderer/canvas_manager.ts
+111 −862 src/renderer/renderer.ts
+320 −142 src/renderer/renderer_elements.ts
+21 −16 src/sdfg_diff_viewer.ts
+51 −51 src/sdfv.ts
+37 −9 src/sdfv_ui.ts
+92 −0 src/types.ts
+3 −3 src/utils/bounding_box.ts
+1 −1 src/utils/sdfg/dotgraph.ts
+2 −1 src/utils/sdfg/json_serializer.ts
+13 −4 src/utils/sdfg/memlet_trees.ts
+0 −171 src/utils/sdfg/sdfg_parser.ts
+8 −8 src/utils/sdfg/sdfg_utils.ts
+2 −1 src/utils/sdfg/traversal.ts
+10 −10 src/utils/utils.ts
+4 −3 tests/unit/sdfg_diff_viewer.test.ts
+1 −0 webpack.config.js
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 945b5ce

Please sign in to comment.