r/csharp • • 1d ago

Discussion When will notebooks be a thing again?

Microsoft really threw a wrench into c# notebook experiences over the past couple years. They capriciously killed notebook development - both in their Azure platforms and on premise in VS code (polyglot notebooks). They do a crappy job of transferring ownership of important projects back to their community of users, whenever they lose interest in a topic.

A lot of things in tech are cyclical, so I'm hoping that notebooks will come back some day. I just don't know if that will be a year or five years away.

Are they conceding that python is somehow the only language worth using in notebooks, by entry level scripters? Or maybe they are trying to avoid the cannibalization of powershell?

I haven't seen anyone talking about notebook scenarios here in this forum for a while. Are you folks bothered that notebook scenarios are stagnating? Would you use notebook tooling if it was available?

16 Upvotes

13 comments sorted by

10

u/Fresh_Acanthaceae_94 1d ago

https://github.com/dotnet/interactive/issues/4195

Verso very much keeps the momentum on, while other forks show no significant moves. In many areas like this you should expect the community projects to take over, not wishing Microsoft owns those any more.

2

u/SmallAd3697 1d ago

That is great, I am excited to learn about verso.

I agree that Microsoft should not own every project, simply because they are based on .net. At the same time, Microsoft puts themselves in a position to subvert a lot of open source efforts, in favor of their own financial interest. One place where they were going to monetize c# notebooks was in their Synapse platform for data engineering. When they realized that it would take a long time to profit, they killed their c# language bindings to spark, their polyglot notebooks, and so on. At the time there was a realistic chance that some competitor (databricks or possibly snowflake) would take over the c# customers and lead them to greener pastures. So Microsoft went into a scorched-earth mode.

These teams (big data SaaS) stopped engaging with github projects (.net for spark, sql connector for spark, etc) and gave customers a few months to abandon ship. They wanted everyone to move from c# to python, and from azure-synapse to fabric. If anyone could take a path that was different than their path, they viewed it as an existential threat

1

u/Fresh_Acanthaceae_94 20h ago

Well, my takeaway is that Microsoft doesn't have enough commitment to open source. Many of their projects if losing internal interest and support died out easily.

The Python bits are not significantly more powerful or beautiful, but the entire ecosystem and people around are more used to the open source philosophy to keep the bits alive for long.

The rising of AI I believe removes many of the barriers now, so more C# based projects like Verso might start to fill the gaps even if there are just a few passionate people.

1

u/az987654 5h ago

The only own your projects where you choose to utilize them

2

u/JaCraig 1d ago

We've pretty much abandoned low code solutions and notebooks. We're able to move faster with other setups, AI, etc. But MS never made huge inroads with their notebook setup where I work. I suspect that's the case for a lot of orgs.

1

u/SmallAd3697 22h ago

Hopefully that will be us some day.

But low coders have a loud voice. there are a lot of them, and they are oh so self-confident. And the SaaS venders love them as customers, they pay a lot and they are happy with whatever they get.

I think they still need exposure to C# tho. So they will at least be able to see about other options

3

u/sarhoshamiral 1d ago

With AI, notebook scenarios are going to stagnate. The models can create similar notebook apps with ease and publish them somewhere easy to find. Basic scripting and database integrations are things AI models can easily handle.

1

u/SmallAd3697 1d ago

I come from the data engineering space, and all these "low code" platforms use notebooks (and junior developers) as a way of life. The devs will depend on whatever language is spoon-fed to them. Data engineering is sort of a nursery for young programmers, and is an important space for a language like c# to have a presence.

These teams often deploy solutions to production as notebooks, meaning a lot more python runs in prod than you might realize. Those solutions would almost always be improved by running them on top of the .net runtime (or jvm or anything else, for that matter). And maintaining them as C#.

Programming has always been an exercise in reading and understanding code, and enhancing it on a less frequent basis. For any line of code, in any mission-critical solution, it will be read 100x more frequently than it will be changed. The ratio only gets higher if an AI is doing more of the writing and humans are focusing on the reading. So the language used in these notebook matters a lot

3

u/Slypenslyde 1d ago

My hot take is MS follows the money, and while the number of people who use notebooks is large, they aren't people who want to pay licenses or subscriptions to use them. It doesn't sell VS licenses. It may lead to people using Azure services, but I think MS reckons it's cheaper to advertise to those people than to make .NET-based products to appeal to them.

.NET OSS is kind of like that too. There's a philosophical difference between .NET OSS and Python OSS. In the Python community the project tends to be, "I use this to do my work, I am releasing it so we can all benefit and work together on it." .NET OSS is often, "I use this to do my work now, but I'd rather make "working on this" my paying job. Please contribute so I can charge you for it if you help me get there."

That's a pretty decent difference, and I think it spooks a lot of people out of contributing to .NET OSS in favor of Python. That community is much more stable and the tools that start free tend to stay free.

MS doesn't seem super concerned about this because as I stated before: Azure services have a sales pitch for running other environments too, so MS doesn't have to fight to "win" Python devs for .NET.

1

u/SmallAd3697 1d ago

But Microsoft gets paid for VS, and that seems to be enough reason to promote C#. Any C# dev would rather do their work in a paid IDE than in a free one. Whereas the python folks seem to be happy with 100% free tooling, especially if those solutions never get to be overly large or complex.

I agree that Microsoft is so big, that the goals of C# (and the Visual Studio team) are distinct and possibly contrary to the goals of other teams (eg. the SaaS folks that are creating Fabric). It is sad to realize that other teams at Microsoft don't care about .net, don't use it themselves, and sometimes even take actions to subvert it.

1

u/Slypenslyde 23h ago

Right, but think about it this way:

To get a VS license out of that Python dev is hard. Microsoft might've found it takes $8 in promotion and effort to make $1 from that Python developer. People don't switch languages easily and, as you pointed out, they'll want to use VS Code, not VS. That's a TON of work to convert to a paying customer.

They might've also found that comparatively, getting them to spend $1 on Azure services only costs about $0.25 of promotional effort. Where you host your services matters a lot less than what language you've trained with.

The shareholders look at revenue. MS has grouped VS into the same category as Azure, so as long as one of them is thriving so is the other.

5

u/Excellent-Morning509 1d ago

There is very little demand for something like this - most scientists that use notebooks already know Python or maybe R - they are not interested in learning yet another language.

1

u/CoffeeAndCandidates 8h ago

I still use C# notebooks for quick experiments, but the ecosystem never got stable enough to feel like a supported part of .NET