Clear Jupyter notebook output and restart kernel to clean up code

This commit is contained in:
Steve Baskauf 2020-08-13 13:05:09 -05:00
parent d26027826a
commit 4577422762
1 changed files with 15 additions and 79 deletions

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@ -78,19 +78,9 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Retrieving term list metadata from GitHub\n",
"[{'database': 'terms', 'pref_ns_prefix': 'dwc', 'pref_ns_uri': 'http://rs.tdwg.org/dwc/terms/', 'list_iri': 'http://rs.tdwg.org/dwc/terms/'}, {'database': 'iri', 'pref_ns_prefix': 'dwciri', 'pref_ns_uri': 'http://rs.tdwg.org/dwc/iri/', 'list_iri': 'http://rs.tdwg.org/dwc/iri/'}, {'database': 'dc-for-dwc', 'pref_ns_prefix': 'dc', 'pref_ns_uri': 'http://purl.org/dc/elements/1.1/', 'list_iri': 'http://rs.tdwg.org/dwc/dc/'}, {'database': 'dcterms-for-dwc', 'pref_ns_prefix': 'dcterms', 'pref_ns_uri': 'http://purl.org/dc/terms/', 'list_iri': 'http://rs.tdwg.org/dwc/dcterms/'}]\n",
"\n"
]
}
],
"outputs": [],
"source": [
"# ---------------\n",
"# Retrieve term list metadata from GitHub\n",
@ -115,19 +105,9 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Retrieving metadata about terms from all namespaces from GitHub\n",
"done retrieving\n",
"\n"
]
}
],
"outputs": [],
"source": [
"# ---------------\n",
"# Create metadata table and populate using data from namespace databases in GitHub\n",
@ -206,18 +186,9 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Generating term index by CURIE\n",
"\n"
]
}
],
"outputs": [],
"source": [
"# ---------------\n",
"# generate the index of terms grouped by category and sorted alphabetically by lowercase term local name\n",
@ -269,18 +240,9 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Generating term index by label\n",
"\n"
]
}
],
"outputs": [],
"source": [
"# ---------------\n",
"# generate the index of terms by label\n",
@ -327,19 +289,9 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Generating terms table\n",
"done generating\n",
"\n"
]
}
],
"outputs": [],
"source": [
"decisions_df = pd.read_csv('https://raw.githubusercontent.com/tdwg/rs.tdwg.org/master/decisions/decisions-links.csv', na_filter=False)\n",
"\n",
@ -491,17 +443,9 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Merging term table with header and footer and saving file\n"
]
}
],
"outputs": [],
"source": [
"# ---------------\n",
"# Merge term table with header and footer Markdown, then save file\n",
@ -514,17 +458,9 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"done\n"
]
}
],
"outputs": [],
"source": [
"# read in header and footer, merge with terms table, and output\n",
"\n",