nushell / demo

Experimental wasm-based Nu playground
https://www.nushell.sh/demo/
MIT License
23 stars 10 forks source link

Should we make this notebook style? #30

Open fdncred opened 4 years ago

fdncred commented 4 years ago

This is what I'm thinking. The UI something like this now. [button1] [button2] [button3] text box command results

If it worked more like a notebook ala jupyter it would have text box command results

text box command results

text box command results

And so on. You could scroll up and down through all your text box commands & results and execute them, change them or whatever. Or, if we were really slick, the output of one result could be stored as a variable and used in the next text box command just like jupyter.

jzaefferer commented 4 years ago

Since I've never successfully worked with jupyter notebooks I don't quite understand how that actually works. Could you provide a little more detail on the interactions/workflow? Is there a notebook (with nushell) somewhere that I could look at?

There's some overlap with #9 here.

Regarding interactive exploration, I really like https://observablehq.com/ - there might be some useful inspiration there, too.

fdncred commented 4 years ago

@jzaefferer Try this. Once it starts click on the Notebook-v0.14.ipynb file. The you can see the md stored in the notebook as well as execute the old commands in there as well as put new commands in there to test them out. I set this binder up a few months back. It may take 10 minutes or so to start but you can watch the build logs. Let me know if you have problems with it or it never starts.

You could also look here and see the first pass jupyter kernel code that @jonathandturner wrote a while back.