-
-
Save gnestor/f1893e0226ced227e910f11b769adc06 to your computer and use it in GitHub Desktop.
Demo notebook for @jupyterlab/javascript-extension: https://github.com/jupyterlab/jupyterlab/pull/4515
Use CSS selectors:
# cell 1
%%javascript
element.innerHTML = '<pre id="test">hello</pre>'
# cell 2
%%javascript
var test = document.querySelector('#test')
test.textContent = 'hello world'
Thanks!
This is a really nice demo, just what I was looking for, thanks! 👍🏻
@sandorspruit You're welcome!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. This is great, but how do you refer to a created DOM element? Particularly I'd like to make a simple table sortable, but JupyterLab makes this rocket science.