n-riesco / ijavascript

IJavascript is a javascript kernel for the Jupyter notebook
Other
2.18k stars 187 forks source link

creating and manipulating dom objects #120

Closed thwee-alchemist closed 6 years ago

thwee-alchemist commented 6 years ago

I'm trying to write about my 3D graph visualization library, fourd.js, and was wondering whether there was a way to access the dom elements as they are created in your documentation. For example, would jquery work, or three.js?

n-riesco commented 6 years ago

The answer depends on the CSP policies of the frontend you're using (I haven't tested this recently, but most of them don't allow JS injection).

See this answer in stackoverflow for an example using JSDom and D3.