Skip to content

#!import is broken by Markdown cells in imported .ipynb files #2853

@jonsequitur

Description

@jonsequitur

The Polyglot Notebooks extension currently writes metadata into Markdown cells indicating that the cell language is the notebook's default (e.g. csharp in the screen shot below). When importing a notebook via #!import or running it via dotnet-repl, this causes the cell to be executed as though it is C#.

image

I believe that this regression was introduced by #2789:

// the metadata needs an actual kernel name, not the special-cased 'markdown'
const kernelNameInMetadata = isMarkdown ? 'csharp' : kernelName;
const notebookCellMetadata: metadataUtilities.NotebookCellMetadata = {
kernelName: kernelNameInMetadata,
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions