ResidentMario / py_d3

D3 block magic for Jupyter notebook.
MIT License
450 stars 40 forks source link

Fixes #7 #8

Closed JobJob closed 7 years ago

JobJob commented 7 years ago

These two both work as expected now, previously the first one deleted all divs on the page 😄

%%d3

<script>
d3.selectAll("div").remove()
</script>
%%d3

<g></g><br/>
<g></g>

<script>
d3.selectAll("g").text("Everybody, yeah eh! Rock your body, yeah eh!");
</script>