Skip to content

Instantly share code, notes, and snippets.

@stewartadam
Last active July 11, 2024 18:23
Show Gist options
  • Save stewartadam/528689d9bb917715a4c16a6ff9282de3 to your computer and use it in GitHub Desktop.
Save stewartadam/528689d9bb917715a4c16a6ff9282de3 to your computer and use it in GitHub Desktop.
Notebook examples for astral-sh/ruff#12281
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This notebook was created using the VS Code \"Polyglot Notebooks\" extension (ms-dotnettools.dotnet-interactive-vscode)."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"vscode": {
"languageId": "polyglot-notebook"
}
},
"outputs": [],
"source": [
"Console.WriteLine(\"This is a C# cell\");"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"dotnet_interactive": {
"language": "javascript"
},
"polyglot_notebook": {
"kernelName": "javascript"
},
"vscode": {
"languageId": "polyglot-notebook"
}
},
"outputs": [],
"source": [
"console.log('this is a JavaScript cell')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".NET (C#)",
"language": "C#",
"name": ".net-csharp"
},
"language_info": {
"name": "python"
},
"polyglot_notebook": {
"kernelInfo": {
"defaultKernelName": "csharp",
"items": [
{
"aliases": [],
"name": "csharp"
}
]
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment