n-riesco / ijavascript

IJavascript is a javascript kernel for the Jupyter notebook
Other
2.18k stars 187 forks source link

Update documentation for asynchronous output #64

Closed n-riesco closed 7 years ago

n-riesco commented 8 years ago

The documentation in http://n-riesco.github.io/ijavascript/doc/async.ipynb.html needs updating.

See #58

neil-s commented 8 years ago

Sorry for the radio silence, and thanks for your tips in #58 , the IIFE worked perfectly. Besides updating the documentation for users to do this on the application code level, would it be worth investigating doing it at a system level? Wrapping each cell in an IIFE so users could use console like they normally would?

n-riesco commented 8 years ago

Wrapping each cell would have the undesirable effect of making any variable or function declarations in one cell invisible to other cells.

neil-s commented 8 years ago

Yeah, I'm still wrapping my head around JS variable scoping, but that's what I thought. Never mind.

n-riesco commented 8 years ago

No worries. One of the reasons why the latest release is still a beta is so that we can play with the new changes and find out what are the most convenient patterns.