News for hackers. Stuff that matters.
Re:VSCode Adds Notebook Support by copperx on Tuesday November 09, 2021 @03:13PM (#29166853)
Does anybody here use Notebooks for non-data science things?

They look like a potential candidate for personal notes.

Re:VSCode Adds Notebook Support by cuddlybacon on Tuesday November 09, 2021 @07:10PM (#29169349)
I've had an idea for a while to make a dashboard style notebook. Basically something that can query a few internal systems (bug tracker, code reviews, etc) and produce of dashboard that basically shows what need my attention.

The Github and REST notebooks in the article imply something like this is possible.

Re:VSCode Adds Notebook Support by Dessesaf on Tuesday November 09, 2021 @07:56PM (#29169750)
I used Notebooks for notes for a while. It's useful. The choice is essentially between Markdown with inline code, or Notebooks, which are Code with markdown inbetween. Markdown focusses on the text, and the code is incidental. You usually don't want to execute it. For Notebooks, executing the code is the focus.

I personally thought I would really value the ability to execute the code, but I found out that it wasn't useful to me. The kind of code I write in my notes is rarely executable. It misses library includes, boilerplate declarations, or sometimes isn't quite syntactically correct.

The overhead of trying to make each (or even most) cell in a Notebook executable takes away from the "whatever is most expressive" mindset I have for notes.

There's one big caveat though. Notebooks are much better for sharing with others. If the code is complete, and literally executable as-is, that is much more useful to others I show the notes. Most of my private notes don't have this constraint though.

I'd probably use notebooks if I was writing something I would possibly publish in the future. Much easier to share it with others to get feedback that way.

Re:VSCode Adds Notebook Support by powersnail on Tuesday November 09, 2021 @04:04PM (#29167451)
Tried it, not particularly useful. Notebooks are code with embedded markdown blocks; it shines when you want to run the code in the notes. Otherwise, it has no more feature than a regular plain text file, only more formatting boilerplates.
Re:VSCode Adds Notebook Support by teruakohatu on Tuesday November 09, 2021 @03:50PM (#29167304)
Notebooks are for the most part markdown with embedded executable code snippets.

Outside of datascience they can be used for exploring API's, databases, prototyping libraries etc.

But for general note taking, markdown would be better.

Re:VSCode Adds Notebook Support by ABraidotti on Tuesday November 09, 2021 @07:59PM (#29169770)
Yes, they are great for developing modular python scripts, like for CLIs, where you might want to prototype some feature without importing the entire app.

For example, I'm working on a cli for a client that ingests a bunch of spreadsheets and processes the data in an SQLite db. Pretty lightweight, but it takes a half hour to run. Using Jupyter notebooks to import some classes and iterate on SQL queries without needing the entire corpus of data is handy.

Re:VSCode Adds Notebook Support by wodenokoto on Wednesday November 10, 2021 @05:41AM (#29173234)
It’s also great for writing/developing tutorials because you can easily mix rich text, code and results of code.

I’d say they are great for any exploratory task, and doubly so if that exploration ends with a write up of the findings.

That’s very often needed in any kind of data analytics, which is why notebooks are spearheaded by data science use cases.

Re:VSCode Adds Notebook Support by sporedro on Tuesday November 09, 2021 @03:48PM (#29167280)
Emacs org-mode allows taking notes and having code blocks you can execute in the notes.

As someone who doesn’t use emacs though, I personally would love to see something like that with markdown/latex/notebooks. I guess you can already sorta do it with Jupyter and things like this.

Would be interesting for a more note-oriented tool to do this though.

Re:VSCode Adds Notebook Support by CodeGlitch on Wednesday November 10, 2021 @04:37AM (#29172832)
I did think they could work quite well as a test/documentation framework. So as you develop the tests you write documentation, so other developers can use this to better understand the codebase, alongside how best to use the library/application.
Re:VSCode Adds Notebook Support by bitwize on Tuesday November 09, 2021 @05:55PM (#29168671)
I wrote a BASIC interpreter in literate org-mode Scheme once. I find it helpful to organize my thoughts in notes, add code, and turn that code into a working program via "tangling".
Re:VSCode Adds Notebook Support by seumars on Tuesday November 09, 2021 @05:43PM (#29168547)
If I had the time I would try out the notebook API to make a simple node.js notebook. There's one alternative that works great but is too bloated to my liking:

https://marketplace.visualstudio.com/items?itemName=donjayam...

Re:VSCode Adds Notebook Support by ossusermivami on Wednesday November 10, 2021 @04:33AM (#29172794)
not the same audience but I use org mode and its org-babel functionality for that and it's great!
Re:VSCode Adds Notebook Support by siproprio on Tuesday November 09, 2021 @02:40PM (#29166418)
Have they removed github's spying capabilities yet? Last time I looked at this, vscode was leaking private data that should not be collected and processed inadvertently.
Re:VSCode Adds Notebook Support by willmorrison on Tuesday November 09, 2021 @03:32PM (#29167065)
Could just use Code - OSS that removes telemetry.
Re:VSCode Adds Notebook Support by siproprio on Wednesday November 10, 2021 @07:40AM (#29173988)
Microsoft purposefully broke Vscodium.
Re:VSCode Adds Notebook Support by jjeaff on Tuesday November 09, 2021 @03:41PM (#29167182)
Not a fan of that name. Makes it difficult to find information about it.

Can you use all the regular vs code extensions with "Code" that you can use with "VS Code"?

For the record, I'm also annoyed at the naming of Visual Studio Code. Not to be confused with Visual Studio which is a completely different IDE.

Re:VSCode Adds Notebook Support by willmorrison on Tuesday November 09, 2021 @06:36PM (#29169032)
Not a fan of the name either. Yes, you can use all of the normal extensions. It's the same thing without telemetry.
Re:VSCode Adds Notebook Support by siproprio on Sunday November 14, 2021 @06:12PM (#29221673)
> It's the same thing without telemetry It's not. The vscode team purposefully breaks services and plugins that microsoft considers "strategic".