{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Adding Banners and Buttons to Notebooks\n",
"\n",
"This notebook iterates through the notebooks in this repository and replaces the first and last cells with the appropriate banners and buttons."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import json\n",
"import pandas as pd\n",
"\n",
"def button_code_generator(notebook_path, notebook_filename):\n",
" notebook_path = notebook_path.replace('./','')\n",
" button_image = 'https://raw.githubusercontent.com/callysto/curriculum-notebooks/master/open-in-callysto-button.svg?sanitize=true'\n",
" repo_path = 'https%3A%2F%2Fgithub.com%2Fcallysto%2Fcurriculum-notebooks&branch=master'\n",
" a = '