Skip to content

Commit

Permalink
Add a section on how to run the notebook.
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh committed May 7, 2024
1 parent bd987b7 commit e1d7f67
Show file tree
Hide file tree
Showing 10 changed files with 177 additions and 77 deletions.
15 changes: 14 additions & 1 deletion Notebooks/1_c#_unicode_char_literals.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----------\n",
"\n",
"> **How to Run This Notebook**\n",
"\n",
"Run this notebook locally, using Visual Studio Code with the [Polyglot Notebooks](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-interactive-vscode) extension installed.\n",
"\n",
"----------"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -106,7 +119,7 @@
"\n",
"Console.WriteLine(str3);\n",
"Console.WriteLine($\"length: {str3.Length}\");\n",
"Console.WriteLine($\"code points: {StringInfo.ParseCombiningCharacters(str3).Length}\"); "
"Console.WriteLine($\"code points: {StringInfo.ParseCombiningCharacters(str3).Length}\");"
]
},
{
Expand Down
50 changes: 30 additions & 20 deletions Notebooks/1_go_unicode_char_literals.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,13 @@
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
"colab_type": "text",
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/sualeh/What-a-Character/blob/go/Notebooks/1_go_unicode_char_literals.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "FWzjioUI63tT"
},
"source": [
"# Unicode Character Literals"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand All @@ -27,17 +18,17 @@
"source": [
"----------\n",
"\n",
"## Google Colab\n",
"> **How to Run This Notebook**\n",
"\n",
"You can run this notebook in Google Colab. The cell below should be run only once, and then followed by a change of runtime to `Go (gonb)`. Refresh the browser before running any subsequent code. If you are not running the notebook in Google Colab, skip this section."
"You can run this notebook in Google Colab. The cell below should be run only once, and then followed by a change of runtime to \"Go (gonb)\". Refresh the browser before running any subsequent code. You can also run this notebook locally if you have a Go kernel for Jupyter installed."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "3PaXSu67xkrg",
"cellView": "form"
"cellView": "form",
"id": "3PaXSu67xkrg"
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -83,6 +74,13 @@
"----------"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Unicode Character Literals"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -228,14 +226,26 @@
],
"metadata": {
"colab": {
"provenance": [],
"include_colab_link": true
"include_colab_link": true,
"provenance": []
},
"kernelspec": {
"display_name": "Go (gonb)",
"name": "gonb"
"display_name": ".NET (C#)",
"language": "C#",
"name": ".net-csharp"
},
"polyglot_notebook": {
"kernelInfo": {
"defaultKernelName": "csharp",
"items": [
{
"aliases": [],
"name": "csharp"
}
]
}
}
},
"nbformat": 4,
"nbformat_minor": 0
}
}
13 changes: 13 additions & 0 deletions Notebooks/2_c#_unicode_case_conversions.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----------\n",
"\n",
"> **How to Run This Notebook**\n",
"\n",
"Run this notebook locally, using Visual Studio Code with the [Polyglot Notebooks](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-interactive-vscode) extension installed.\n",
"\n",
"----------"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
14 changes: 7 additions & 7 deletions Notebooks/2_go_unicode_case_conversions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
"colab_type": "text",
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/sualeh/What-a-Character/blob/go/Notebooks/2_go_unicode_case_conversions.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
Expand All @@ -18,9 +18,9 @@
"source": [
"----------\n",
"\n",
"# Google Colab\n",
"> **How to Run This Notebook**\n",
"\n",
"You can run this notebook in Google Colab. The cell below should be run only once, and then followed by a change of runtime to `Go (gonb)`. Ignore any loading errors. Refresh the browser before running any subsequent code. If you are not running the notebook in Google Colab, skip this section."
"You can run this notebook in Google Colab. The cell below should be run only once, and then followed by a change of runtime to \"Go (gonb)\". Refresh the browser before running any subsequent code. You can also run this notebook locally if you have a Go kernel for Jupyter installed."
]
},
{
Expand Down Expand Up @@ -168,8 +168,8 @@
],
"metadata": {
"colab": {
"provenance": [],
"include_colab_link": true
"include_colab_link": true,
"provenance": []
},
"kernelspec": {
"display_name": "base",
Expand All @@ -191,4 +191,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
13 changes: 13 additions & 0 deletions Notebooks/3_c#_unicode_numbers.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----------\n",
"\n",
"> **How to Run This Notebook**\n",
"\n",
"Run this notebook locally, using Visual Studio Code with the [Polyglot Notebooks](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-interactive-vscode) extension installed.\n",
"\n",
"----------"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
4 changes: 2 additions & 2 deletions Notebooks/3_go_unicode_numbers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"source": [
"----------\n",
"\n",
"# Google Colab\n",
"> **How to Run This Notebook**\n",
"\n",
"You can run this notebook in Google Colab. The cell below should be run only once, and then followed by a change of runtime to `Go (gonb)`. Ignore any loading errors. Refresh the browser before running any subsequent code. If you are not running the notebook in Google Colab, skip this section."
"You can run this notebook in Google Colab. The cell below should be run only once, and then followed by a change of runtime to \"Go (gonb)\". Refresh the browser before running any subsequent code. You can also run this notebook locally if you have a Go kernel for Jupyter installed."
]
},
{
Expand Down
13 changes: 13 additions & 0 deletions Notebooks/4_c#_encoding.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----------\n",
"\n",
"> **How to Run This Notebook**\n",
"\n",
"Run this notebook locally, using Visual Studio Code with the [Polyglot Notebooks](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-interactive-vscode) extension installed.\n",
"\n",
"----------"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
67 changes: 40 additions & 27 deletions Notebooks/4_go_encoding.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
"colab_type": "text",
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/sualeh/What-a-Character/blob/go/Notebooks/4_go_encoding.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
Expand All @@ -18,19 +18,21 @@
"source": [
"----------\n",
"\n",
"## Google Colab\n",
"> **How to Run This Notebook**\n",
"\n",
"You can run this notebook in Google Colab. The cell below should be run only once, and then followed by a change of runtime to `Go (gonb)`. Refresh the browser before running any subsequent code. If you are not running the notebook in Google Colab, skip this section."
"You can run this notebook in Google Colab. The cell below should be run only once, and then followed by a change of runtime to \"Go (gonb)\". Refresh the browser before running any subsequent code. You can also run this notebook locally if you have a Go kernel for Jupyter installed."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"vscode": {
"languageId": "polyglot-notebook"
"dotnet_interactive": {
"language": "csharp"
},
"id": "pL7TqK5kTlaj"
"polyglot_notebook": {
"kernelName": "csharp"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -100,9 +102,11 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "yNU6pAmXRNRx",
"vscode": {
"languageId": "polyglot-notebook"
"dotnet_interactive": {
"language": "csharp"
},
"polyglot_notebook": {
"kernelName": "csharp"
}
},
"outputs": [],
Expand Down Expand Up @@ -133,9 +137,11 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "6uMstf9XRNRy",
"vscode": {
"languageId": "polyglot-notebook"
"dotnet_interactive": {
"language": "csharp"
},
"polyglot_notebook": {
"kernelName": "csharp"
}
},
"outputs": [],
Expand Down Expand Up @@ -164,9 +170,11 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "F5IkwmzRRNRy",
"vscode": {
"languageId": "polyglot-notebook"
"dotnet_interactive": {
"language": "csharp"
},
"polyglot_notebook": {
"kernelName": "csharp"
}
},
"outputs": [],
Expand All @@ -193,9 +201,11 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "YfuallDiRNRy",
"vscode": {
"languageId": "polyglot-notebook"
"dotnet_interactive": {
"language": "csharp"
},
"polyglot_notebook": {
"kernelName": "csharp"
}
},
"outputs": [],
Expand Down Expand Up @@ -223,9 +233,11 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "d5y1y6cbRNRz",
"vscode": {
"languageId": "polyglot-notebook"
"dotnet_interactive": {
"language": "csharp"
},
"polyglot_notebook": {
"kernelName": "csharp"
}
},
"outputs": [],
Expand All @@ -250,12 +262,13 @@
],
"metadata": {
"colab": {
"provenance": [],
"include_colab_link": true
"include_colab_link": true,
"provenance": []
},
"kernelspec": {
"display_name": "Go (gonb)",
"name": "gonb"
"display_name": ".NET (C#)",
"language": "C#",
"name": ".net-csharp"
},
"polyglot_notebook": {
"kernelInfo": {
Expand All @@ -271,4 +284,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
Loading

0 comments on commit e1d7f67

Please sign in to comment.