Jon Sequeira
Jon Sequeira
Jupyter doesn't have the concept of cell-level language. Otherwise, .NET Interactive would have adopted it.
Related: #992, #3323
Addressed by #3810.
You can emit the desired MIME type using a formatter but unless you have a [notebook renderer](https://code.visualstudio.com/api/extension-guides/notebook#notebook-renderer) installed for that MIME type, it won't display correctly. The Mermaid kernel is...
It looks like the custom kernel specifier directive is needed: https://github.com/dotnet/interactive/blob/d5007ed5f490823e6e885c7b29ad7f709479e125/src/Microsoft.DotNet.Interactive.SqlServer/MsSqlKernel.cs#L41 Additionally, the following commands would need to be implemented as they are on the `ToolsServiceKernel`: https://github.com/dotnet/interactive/blob/c125401b58a9069d4b186600365aedba7e3d04c0/src/Microsoft.DotNet.Interactive.SqlServer/ToolsServiceKernel.cs#L24-L25
This looks like it's probably the same issue as https://github.com/dotnet/interactive/issues/1790. I'm curious if the workaround described in [this comment](https://github.com/dotnet/interactive/issues/1790#issuecomment-1275694571) would help you.
If you include an `InvocationContext` parameter in your handler (which is valid in any position), then you can set the exit code by setting the `InvocationContext.ExitCode` property.
You can see our updated release plan here: https://github.com/dotnet/command-line-api/issues/2576
@marckruzik Setting aside the cache/display issue for a moment, which would you say is preferable? * Empty cells are removed on save and reopen * Empty cells are preserved on...
> Dib will collapse empty fragment by design, I am not clear what is the scenario that needs to create a set of empty code cells all for the same...