4 ms·
I use all three of JupyterLab, Jupyter Notebooks and VS Code Notebooks. What I love about VS Code Notebooks - it's almost zero context switching to jump from t
by ghshephard 5y ago
I use all three of JupyterLab, Jupyter Notebooks and VS Code Notebooks.
What I love about VS Code Notebooks - it's almost zero context switching to jump from the the code you are working on to a REPL and back.
What I don't love about VS Code Notebooks (and why I still spend a lot of time in JupyterLab) - the context gets confused as to what cell you are in frequently - so your Ctrl-Enter keys don't work, and you have to manually run each cell one at a time.
~Removed comment about graphs not being inline~ - I stand corrected. Just checked an the latest version does let you show your graphs inline. And they look awesome.
- minimaxir 5y ago> Also - and this is the deal breaker for most people I know - you can't display graphs within your notebook. Until we get that ability - everyone I know who does work and lives off of their matplotlib workstream is going to continue using Jupyter Lab/Notebooks. Hmm? The latest demos seem to imply that a plt.show() does embed the plot images into the Notebook. The major limit on cell outputs is more limited interactivity.
- gobookdev 5y agoThe API microsoft provides allow you to make outputs that do anything that JavaScript can do, when making an extension. One of their engineers made a something called REST Book that's a really good example.
- gobookdev 5y agoI use VS Code notebooks a lot, I like the workflow so much that I made an extension for Go called gobook using the API. I bind everything notebook related to shift+alt, so shift+alt+enter to run cell, shift+alt+r to run all etc. I'm learning Rust and working on a VS Code notebook for it now.
- AlexanderTheGr8 5y agoA notebook for Rust? How does that work? I thought notebooks can only be used for interpreted language and not for compiled ones...
- gobookdev 5y agoThe way I did it for Go was by having a API start up on the local machine that executes the code and returns the result to VS Code, going to do the same for Rust.
- msdrigg 5y agoTheres a repl for rust that can be used in a Jupyter notebook. I am also curious about how it works under the hood but here it is for anyone to check out: https://github.com/google/evcxr https://github.com/google/evcxr