notablemind / jupyter-nodejs

A node.js kernel for jupyter/ipython
http://nbviewer.ipython.org/gist/jaredly/404a36306fdee6a1737a
MIT License
682 stars 70 forks source link

Printing to console from within a module #60

Open elshor opened 6 years ago

elshor commented 6 years ago

I tried to call a module from the kernel that prints to console.log. The expected text did not show in the notebook. I also need to use the display function but it is not accessible from within the module.

Here is the code of the module:

module.exports = function(){console.log('should print this');return 44;};

The output is 44 without printing the text "should print this".