pixiedust / pixiedust_node

Jupyter magic to allow Node.js code to run in a notebook
https://medium.com/ibm-watson-data-lab/running-node-js-notebooks-in-watson-studio-a8f6545d8299
Apache License 2.0
213 stars 24 forks source link

prevent python-->node variable migration using Node.js reserved words -issue #22 #24

Closed glynnbird closed 6 years ago

glynnbird commented 6 years ago

Running display in a Python cell caused some global variables to be set which pixiedust_node tried to migrate to the Node.js environment. These included true, false and self. Doing:

> var true = true
... 

in a Node.js repl causes it to hang.

I fixed this by creating a list of variable names that won't ever be migrate from Python --> Node.