This page was generated from doc/gallery/due-rst.pct.py. Interactive online version: Binder badge. 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())


Last update: Mar 30, 2020