Skip to content

Commit ccdebbc

Browse files
committed
Fix jupyter output format
1 parent 732b6ae commit ccdebbc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ggsql-jupyter/src/display.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ fn format_vegalite(spec: String) -> Value {
7474

7575
let html = format!(
7676
r#"<div id="{}"></div>
77+
7778
<script type="text/javascript">
7879
(function() {{
7980
const spec = {};
@@ -142,7 +143,8 @@ fn format_vegalite(spec: String) -> Value {
142143
}});
143144
}}
144145
}})();
145-
</script>"#,
146+
</script>
147+
"#,
146148
vis_id, spec_json, vis_id
147149
);
148150

0 commit comments

Comments
 (0)