This page was generated from
doc/gallery/due-rst.pct.py.
Interactive online version:
.
Download notebook.
Dummy Notebook 2 for Gallery#
This is a dummy file just to fill the gallery in the reST file.
The thumbnail image is assigned in conf.py.
The source file is, for no particular reason, a Python script adhering to the py:percent
format. It is parsed with the help of Jupytext, see Custom Notebook Formats.
[1]:
from pathlib import Path
[2]:
filename = 'due-rst.pct.py'
print(Path(filename).read_text())
# %% [markdown]
# # Dummy Notebook 2 for Gallery
#
# This is a dummy file just to fill
# [the gallery in the reST file](../a-normal-rst-file.rst#thumbnail-galleries).
#
# The thumbnail image is assigned in [conf.py](../conf.py).
# %% [markdown]
# The source file is, for no particular reason,
# a Python script adhering to the `py:percent` format.
# It is parsed with the help of [Jupytext](https://jupytext.readthedocs.io/),
# see [Custom Notebook Formats](../custom-formats.ipynb).
# %%
from pathlib import Path
# %%
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
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):
[3]:
from IPython.display import Math
eq = Math(r'\int\limits_{-\infty}^\infty f(x) \delta(x - x_0) dx = f(x_0)')
eq
[3]:
$\displaystyle \int\limits_{-\infty}^\infty f(x) \delta(x - x_0) dx = f(x_0)$