{ "cells": [ { "cell_type": "markdown", "metadata": { "nbsphinx": "hidden" }, "source": [ "This notebook is part of the `nbsphinx` documentation: https://nbsphinx.readthedocs.io/." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Using a Cell Tag to Select a Thumbnail\n", "\n", "You can select any code cell (with appropriate output)\n", "by tagging it with the `nbsphinx-thumbnail` tag.\n", "\n", "If there are multiple outputs in the selected cell,\n", "the last one is used.\n", "See [Choosing from Multiple Outputs](multiple-outputs.ipynb)\n", "for how to select a specific output.\n", "If you want to show a tooltip, have a look at\n", "[Using Cell Metadata to Select a Thumbnail](cell-metadata.ipynb)." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import matplotlib.pyplot as plt" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The following cell has the `nbsphinx-thumbnail` tag:" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [ "nbsphinx-thumbnail" ] }, "outputs": [], "source": [ "fig, ax = plt.subplots(figsize=[6, 3])\n", "ax.plot([4, 9, 7, 20, 6, 33, 13, 23, 16, 62, 8])" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.6" } }, "nbformat": 4, "nbformat_minor": 4 }