4 ms·
I have had a quick play around with Deno notebooks. The pain points for me were in image and UI outputs. There is such a large base of support for the Pytho
by Lerc 2y ago
I have had a quick play around with Deno notebooks. The pain points for me were in image and UI outputs. There is such a large base of support for the Python side, it will take quite a lot of work to catch up. The various python bits seem to be quite dependent on the implementation platform though. Colab, jupyter-lab and integrated into an editor are quite different beasts.
Being able to display an entity that carried a MessagePort and a closure for communication would enable a lot there.
- jshen 2y agoCan you give an example of UI and image outputs that don't work with deno? I'm truly curious.
- paulgb 2y agoIn the article, there’s an example where a graph object needs to be: - converted to png - converted into a promise of an array buffer - awaited - converted into a Uint8Array - passed to Deno.jupyter.image Just to display it in the notebook. In Python Jupyter, you can just return many types and the library/Jupyter will figure out how to render them. A few lines of code isn’t much but in my experience for interactive coding to be productive you have to remove every bit of friction and boilerplate you can.
- jshen 2y agoThanks!