Skip to content

Commit

Permalink
add Chicago speed cameras .net interactive example (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomFractals committed Jul 7, 2021
1 parent bd9574b commit d9c0737
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions notebooks/chicago-speed-cameras.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
}
},
"outputs": [],
"source": [
"using System.Net.Http;\r\n",
"using System.Text.Json;\r\n",
"using Microsoft.DotNet.Interactive.Formatting;\r\n",
"using Microsoft.DotNet.Interactive.Formatting.TabularData;\r\n",
"\r\n",
"var dataUrl = \"https://data.cityofchicago.org/resource/4i42-qv3h.json\";\r\n",
"var data = await new HttpClient().GetStringAsync(dataUrl);\r\n",
"JsonDocument.Parse(data).ToTabularDataResource()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".NET (C#)",
"language": "C#",
"name": ".net-csharp"
},
"language_info": {
"file_extension": ".cs",
"mimetype": "text/x-csharp",
"name": "C#",
"pygments_lexer": "csharp",
"version": "9.0"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit d9c0737

Please sign in to comment.