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

Print statements are sometimes delayed until running the cell a second time #3

Open markwatsonatx opened 7 years ago

markwatsonatx commented 7 years ago

I created the following cell:

%%node
print(new Date());

Sometimes this works without issue. Sometimes the value is not printed. Running the cell a second time results in two printouts:

%%node
print(new Date());
"2017-08-29T21:09:40.994Z"
"2017-08-29T21:09:46.047Z"
screen shot 2017-08-29 at 4 11 37 pm
markwatsonatx commented 7 years ago

Not just limited to using the print command in the cell. I reproduced with the help command as well:

screen shot 2017-08-29 at 4 14 29 pm
glynnbird commented 7 years ago

Hi @markwatsonatx. I'm struggling to reproduce this on my notebook. What version of Node / pixiedust are you using?

markwatsonatx commented 7 years ago

PixieDust 1.0.10 Node 8.4.0

I wish I had good reproducible steps. It is very intermittent.

zhihanyue commented 4 years ago

I met the same problem