{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Jinja templates" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "marking up plain text!" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## What is a Jinja template?" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from jinja2 import Template" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# To render HTML in a Jupyter notebook ...\n", "from IPython.display import HTML, display" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "hello = '