DonJayamanne / typescript-notebook

Run JavaScript and TypeScript in node.js within VS Code notebooks with excellent support for debugging, tensorflowjs visulizations, plotly, danfojs, etc
https://marketplace.visualstudio.com/items?itemName=donjayamanne.typescript-notebook
MIT License
905 stars 40 forks source link

Fix ordering of execution result & console output #15

Closed DonJayamanne closed 3 years ago

DonJayamanne commented 3 years ago

Sample code:

var abc = 1234;
console.log('Hello World');
abc

The output should be:

Hello World
1234

But sometimes we get

1234
Hello World

Solutions: