Polyglot Notebooks for Visual StudioDownload this extension from the Visual Studio Marketplace or get the latest CI build from Open VSIX Gallery. Write and run C#, JavaScript, SQL, and more — right inside Visual Studio. Polyglot Notebooks brings an interactive notebook experience to the IDE you already know, powered by .NET Interactive. Mix languages in a single document, share variables across cells, and see rich output instantly.
What You GetMulti-language cells - Write C#, JavaScript, and SQL side by side in one notebook. Switch languages per cell with a dropdown or Standard notebook formats - Open and save Rich output - See HTML, images, tables, and formatted text rendered directly below each cell. No console window needed. IntelliSense everywhere - Get completions, signature help, and diagnostics in every code cell — the same editing experience you expect from Visual Studio. Cross-language variable sharing - Define a variable in C# and use it in JavaScript. The kernel handles the data transfer automatically. Variable Explorer - Inspect all live variables across kernels in a dedicated tool window. See names, types, values, and which kernel owns each variable. Zero setup - The extension detects and installs Item template - Create new Getting StartedCreate a New NotebookRight-click a project or folder in Solution Explorer and select Add > New Item. Search for Polyglot Notebook in the template list. The template creates a Open a NotebookDouble-click any Write and Run CodeType code in any cell and press Shift+Enter to execute. Output appears directly below the cell. Use the ▶ button or the run dropdown for more options like Run Cells Above and Run Cell and Below.
Switch LanguagesEach cell has a language selector in its toolbar. Pick C#, JavaScript, SQL, or another available kernel. You can also type Inspect VariablesOpen View > Variable Explorer to see every variable across all kernels. Click any row to see its full value in the detail pane. Hit Refresh after running cells to update. Manage the NotebookThe toolbar at the top of the editor gives you quick access to common actions:
Organize CellsUse the cell menu (···) to insert, move, or delete cells. Drag-and-drop reordering keeps your notebook tidy. Keyboard Shortcuts
Example NotebooksThe
How It WorksPolyglot Notebooks uses dotnet-interactive as its execution engine. When you open a notebook, the extension starts a kernel process in the background. Each cell's code is sent to the appropriate language kernel, and results stream back as rich output. If ContributeFor build instructions, architecture overview, and PR guidelines, see CONTRIBUTING.md. Issues, ideas, and pull requests are welcome. License |

