Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Feb 10, 2024
1 parent 6154211 commit 0e3bb38
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion component_charts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"cell_type": "code",
"source": [
"# @title Chart functions { display-mode: \"form\" }\n",
"\n",
"import altair as alt\n",
"\n",
"\n",
"class MissingColumnsError(Exception):\n",
" def __init__(self, columns):\n",
" super().__init__(f\"The source data is missing one or more of these columns: {columns}\")\n",
Expand Down
9 changes: 5 additions & 4 deletions component_setup_registry.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@
],
"source": [
"! curl -sSOL https://github.com/open-contracting/cardinal-rs/releases/download/0.0.5/ocdscardinal-0.0.5-linux-64-bit.zip\n",
"! unzip -oj ocdscardinal-0.0.5-linux-64-bit.zip ocdscardinal-0.0.5-linux-64-bit/ocdscardinal\n",
"\n",
"import os\n",
"import json"
"! unzip -oj ocdscardinal-0.0.5-linux-64-bit.zip ocdscardinal-0.0.5-linux-64-bit/ocdscardinal"
]
},
{
Expand Down Expand Up @@ -81,6 +78,10 @@
},
"outputs": [],
"source": [
"import os\n",
"import json\n",
"\n",
"\n",
"url = input(\"URL of JSON file:\")"
]
},
Expand Down
2 changes: 1 addition & 1 deletion template_data_quality_feedback.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@
"outputs": [],
"source": [
"# @title Chart functions { display-mode: \"form\" }\n",
"\n",
"import altair as alt\n",
"\n",
"\n",
"class MissingColumnsError(Exception):\n",
" def __init__(self, columns):\n",
" super().__init__(f\"The source data is missing one or more of these columns: {columns}\")\n",
Expand Down
2 changes: 1 addition & 1 deletion template_publisher_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@
"outputs": [],
"source": [
"# @title Chart functions { display-mode: \"form\" }\n",
"\n",
"import altair as alt\n",
"\n",
"\n",
"class MissingColumnsError(Exception):\n",
" def __init__(self, columns):\n",
" super().__init__(f\"The source data is missing one or more of these columns: {columns}\")\n",
Expand Down
2 changes: 1 addition & 1 deletion template_structure_and_format_feedback.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@
"outputs": [],
"source": [
"# @title Chart functions { display-mode: \"form\" }\n",
"\n",
"import altair as alt\n",
"\n",
"\n",
"class MissingColumnsError(Exception):\n",
" def __init__(self, columns):\n",
" super().__init__(f\"The source data is missing one or more of these columns: {columns}\")\n",
Expand Down
2 changes: 1 addition & 1 deletion template_usability_checks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@
"outputs": [],
"source": [
"# @title Chart functions { display-mode: \"form\" }\n",
"\n",
"import altair as alt\n",
"\n",
"\n",
"class MissingColumnsError(Exception):\n",
" def __init__(self, columns):\n",
" super().__init__(f\"The source data is missing one or more of these columns: {columns}\")\n",
Expand Down
2 changes: 1 addition & 1 deletion template_usability_checks_fieldlist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@
"outputs": [],
"source": [
"# @title Chart functions { display-mode: \"form\" }\n",
"\n",
"import altair as alt\n",
"\n",
"\n",
"class MissingColumnsError(Exception):\n",
" def __init__(self, columns):\n",
" super().__init__(f\"The source data is missing one or more of these columns: {columns}\")\n",
Expand Down
11 changes: 6 additions & 5 deletions template_usability_checks_registry.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@
"outputs": [],
"source": [
"# @title Chart functions { display-mode: \"form\" }\n",
"\n",
"import altair as alt\n",
"\n",
"\n",
"class MissingColumnsError(Exception):\n",
" def __init__(self, columns):\n",
" super().__init__(f\"The source data is missing one or more of these columns: {columns}\")\n",
Expand Down Expand Up @@ -479,10 +479,7 @@
],
"source": [
"! curl -sSOL https://github.com/open-contracting/cardinal-rs/releases/download/0.0.5/ocdscardinal-0.0.5-linux-64-bit.zip\n",
"! unzip -oj ocdscardinal-0.0.5-linux-64-bit.zip ocdscardinal-0.0.5-linux-64-bit/ocdscardinal\n",
"\n",
"import os\n",
"import json"
"! unzip -oj ocdscardinal-0.0.5-linux-64-bit.zip ocdscardinal-0.0.5-linux-64-bit/ocdscardinal"
]
},
{
Expand Down Expand Up @@ -515,6 +512,10 @@
},
"outputs": [],
"source": [
"import os\n",
"import json\n",
"\n",
"\n",
"url = input(\"URL of JSON file:\")"
]
},
Expand Down

0 comments on commit 0e3bb38

Please sign in to comment.