How to configure ipythons %%javascriptcellular magic so that it displays both the ipython output cell and the browser console, as shown below
%%javascript
I do not want to use alert(). Also, I tried to get similar behavior with nodejs using %%scriptmagic
alert()
%%script
%%script node console.log("Hi")
But that is not what I need.
you have access to the output of Dom node under a variable named elementwrapped in jquery. So:
element
%%javascript element.text('Hi') console.log('There')
, , , , element.text(), . element.append() javascript %%, . <br> . ,
function assert(cond,msg) { if (!cond) { element.append(msg + "<br>"); } }