Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions doc/gallery/cinque-rst.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"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": [
"# Dummy Notebook 5 for Gallery\n",
"\n",
"This is another dummy file to fill\n",
"[the gallery in the reST file](../a-normal-rst-file.rst#thumbnail-galleries).\n",
"\n",
"The thumbnail image is assigned in [conf.py](../conf.py)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This page has a secondary use, though,\n",
"which is testing whether a single inline math equation works\n",
"(if there is no other math on the same page): $\\text{e}^{i\\pi} = -1$."
]
}
],
"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
}
10 changes: 10 additions & 0 deletions doc/gallery/due-rst.pct.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@
filename = 'due-rst.pct.py'

print(Path(filename).read_text())

# %% [markdown]
# This page has a secondary use,
# which is testing whether a single math output cell works
# (if there is no other math on the same page):

# %%
from IPython.display import Math
eq = Math(r'\int\limits_{-\infty}^\infty f(x) \delta(x - x_0) dx = f(x_0)')
eq
13 changes: 13 additions & 0 deletions doc/gallery/uno-rst.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@
"\n",
"The thumbnail image is assigned in [conf.py](../conf.py)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This page has a secondary use, though,\n",
"which is testing whether a single block math equation works\n",
"(if there is no other math on the same page):\n",
"\n",
"\\begin{equation}\n",
"\\int\\limits_{-\\infty}^\\infty f(x) \\delta(x - x_0) dx = f(x_0).\n",
"\\end{equation}"
]
}
],
"metadata": {
Expand Down