Skip to content

Commit f746701

Browse files
Added how to get .Net notebook
1 parent 2b51e40 commit f746701

4 files changed

+440
-1991
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# How do I get .Net Interactive ?\n",
8+
"\n",
9+
"It's quite easy to do. It will take you a few minutes.\n",
10+
"\n",
11+
"Go to this link \n",
12+
"\n",
13+
"https://devblogs.microsoft.com/dotnet/net-interactive-is-here-net-notebooks-preview-2/\n",
14+
"\n",
15+
"and follow the instructions carefully\n",
16+
"\n",
17+
"See you soon :-)"
18+
]
19+
},
20+
{
21+
"cell_type": "code",
22+
"execution_count": null,
23+
"metadata": {},
24+
"outputs": [],
25+
"source": []
26+
}
27+
],
28+
"metadata": {
29+
"kernelspec": {
30+
"display_name": ".NET (PowerShell)",
31+
"language": "PowerShell",
32+
"name": ".net-powershell"
33+
},
34+
"language_info": {
35+
"file_extension": ".ps1",
36+
"mimetype": "text/x-powershell",
37+
"name": "PowerShell",
38+
"pygments_lexer": "powershell",
39+
"version": "7.0"
40+
}
41+
},
42+
"nbformat": 4,
43+
"nbformat_minor": 4
44+
}

Diff for: notebooks/dotNETNotebooks/dbachecks/00 - Setting up the containers for the rest of the containers.ipynb

+6-81
Original file line numberDiff line numberDiff line change
@@ -37,63 +37,14 @@
3737
},
3838
{
3939
"cell_type": "code",
40-
"execution_count": 2,
40+
"execution_count": null,
4141
"metadata": {
4242
"azdata_cell_guid": "05f101cc-6fe4-4f97-9e2a-88230ffa5462",
4343
"tags": [
4444
"hide_input"
4545
]
4646
},
47-
"outputs": [
48-
{
49-
"data": {
50-
"text/html": [
51-
"<script type=\"text/javascript\">#!javascript\r\n",
52-
"if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) { \r\n",
53-
" let script = document.createElement(\"script\"); \r\n",
54-
" script.setAttribute(\"src\", \"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js\"); \r\n",
55-
" script.onload = function(){\r\n",
56-
" loadDotnetInteractiveApi();\r\n",
57-
" };\r\n",
58-
" document.getElementsByTagName(\"head\")[0].appendChild(script); \r\n",
59-
"}\r\n",
60-
"else {\r\n",
61-
" loadDotnetInteractiveApi();\r\n",
62-
"}\r\n",
63-
"\r\n",
64-
"function loadDotnetInteractiveApi(){\r\n",
65-
" let apiRequire = requirejs.config({context:\"dotnet-interactive.32584.62760\",paths:{dotnetInteractive:\"http://localhost:62760/resources/dotnet-interactive\"}});\r\n",
66-
" apiRequire(['dotnetInteractive'], \r\n",
67-
" function(api) { \r\n",
68-
" api.createDotnetInteractiveClient(\"http://localhost:62760/\", window);\r\n",
69-
" },\r\n",
70-
" function(error){\r\n",
71-
" console.log(error);\r\n",
72-
" });\r\n",
73-
"}</script>"
74-
]
75-
},
76-
"metadata": {},
77-
"output_type": "display_data"
78-
},
79-
{
80-
"name": "stdout",
81-
"output_type": "stream",
82-
"text": [
83-
"Creating Directory C:\\Users\\mrrob\\Documents\\dbachecks\n",
84-
"Path C:\\Users\\mrrob\\Documents\\dbachecks exists already\n",
85-
"Creating Directory C:\\Users\\mrrob\\Documents\\dbachecks\\SQL1\n",
86-
"Directory SQL1 exists already\n",
87-
"Creating File C:\\Users\\mrrob\\Documents\\dbachecks\\SQL1\\dummyfile.txt\n",
88-
"Creating Directory C:\\Users\\mrrob\\Documents\\dbachecks\\SQL2\n",
89-
"Directory SQL2 exists already\n",
90-
"Creating File C:\\Users\\mrrob\\Documents\\dbachecks\\SQL2\\dummyfile.txt\n",
91-
"Creating a credential file for the containers - Please don't do this in production\n",
92-
"Credential file created\n",
93-
"Setting the docker-compose files values\n"
94-
]
95-
}
96-
],
47+
"outputs": [],
9748
"source": [
9849
"# Alter the Notebook Directory below before running this code\r\n",
9950
"$notebookDirectory ='C:\\Users\\mrrob\\OneDrive\\Documents\\GitHub\\JupyterNotebooks\\notebooks\\NotDotNet\\dbachecks'\r\n",
@@ -166,28 +117,12 @@
166117
},
167118
{
168119
"cell_type": "code",
169-
"execution_count": 2,
120+
"execution_count": null,
170121
"metadata": {
171122
"azdata_cell_guid": "63ae3fba-d0af-4226-9a2e-1ec9f92b76dd",
172123
"tags": []
173124
},
174-
"outputs": [
175-
{
176-
"name": "stdout",
177-
"output_type": "stream",
178-
"text": [
179-
"Starting dbachecks_SQL2019-1_1 ... \n",
180-
"\n",
181-
"Starting dbachecks_SQL2019_1 ... \n",
182-
"\n",
183-
"\u001b[1A\u001b[2K\n",
184-
"Starting dbachecks_SQL2019_1 ... \u001b[32mdone\u001b[0m\n",
185-
"\u001b[1B\u001b[2A\u001b[2K\n",
186-
"Starting dbachecks_SQL2019-1_1 ... \u001b[32mdone\u001b[0m\n",
187-
"\u001b[2B\n"
188-
]
189-
}
190-
],
125+
"outputs": [],
191126
"source": [
192127
"$FolderPath = $Env:USERPROFILE + '\\Documents\\dbachecks'\r\n",
193128
"Set-Location $FolderPath\r\n",
@@ -217,21 +152,11 @@
217152
},
218153
{
219154
"cell_type": "code",
220-
"execution_count": 3,
155+
"execution_count": null,
221156
"metadata": {
222157
"azdata_cell_guid": "f47bed8a-0d8c-4f13-ad42-c1685ad0961d"
223158
},
224-
"outputs": [
225-
{
226-
"name": "stdout",
227-
"output_type": "stream",
228-
"text": [
229-
"CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES\n",
230-
"1b1c78f842d5 sqldbawithabeard/dbachecksdemo \"/opt/mssql/bin/perm…\" 10 seconds ago Up 8 seconds 0.0.0.0:5023->5023/tcp, 0.0.0.0:15593->1433/tcp dbachecks_SQL2019-1_1\n",
231-
"c05d2805d97d sqldbawithabeard/dbachecksdemo \"/opt/mssql/bin/perm…\" 10 seconds ago Up 8 seconds 0.0.0.0:5022->5022/tcp, 0.0.0.0:15592->1433/tcp dbachecks_SQL2019_1\n"
232-
]
233-
}
234-
],
159+
"outputs": [],
235160
"source": [
236161
"docker ps -a"
237162
]

0 commit comments

Comments
 (0)