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

ES6 Javascript #25

Open robinmattern opened 8 years ago

robinmattern commented 8 years ago

This may be a non-issue, but all the Javascript for this kernel uses the ES6 / V8 language feature, import. I can't get the current version of NodeJS (v6.2.0; V8 v5.0.71.47) on Windows to recognize this keyword. Using the --harmony-module switch in kernel.json doesn't do it. Note these new language features, const, =>, and for (let aKey in pKeys) { .. } all do work.

jaredly commented 7 years ago

npm run build transpiles the newfangled javascript into normal es5 compatible javascript -- at what point are you running the untranspiled javascript?