Jupnode lib for enable a Jupyter Notebook user to invoke Node.js commands.
You need Node.js/npm installed. See the Node.js downloads page to find an installer for your platform.
After this cell other cells will run on node.js.
!npmijupnodeimportjupnodeUse %%py for use python in cell
%%pyprint(123)
print(54)You can use await in top level
fs=require("fs");awaitfs.promises.readFile("example.txt");Use var for global usage. Use let, const variables for local usage in cell
varglobalVar=1;letvariableInCell=2;console.log(globalVar,variableInCell);// 1 2// 1console.log(globalVar);console.log(variableInCell);// ReferenceError: variableInCell is not definedUse "sh" global function for system operations
//install npm packagesh("npm i @tensorflow/tfjs-node");//orsh`npm i @tensorflow/tfjs-node`;//download fileletfolder="./";sh`wget -nv http://pjreddie.com/media/files/VOCtrainval_06-Nov-2007.tar -P ${folder}/`;Use "html" or "image" functions for formatted output
//show htmlhtml(`<p>This is html</p>`);//show image base64image("data:image/jpeg;base64, LzlqLzRBQ...<!-- base64 data -->");//show image urlimage("https://kstatic.googleusercontent.com/...");Enable profiling for cell and save result as "profile.log" file after cell
await profiler('./profile.log');
Load profile.log file into Chrome dev tools
Example profile.log


