There are a few elements that are unique or particularly important to this theme. This page is a reference for how these look.
Here's a note with:
- A nested list
- List item two
As well as:
```{warning}
A nested warning block to test nested admonitions.
```
You can write in your documentation when something has been changed, added or deprecated from one version to another.
Something is new, use it from now.
Something is modified, check your version number.
Something is deprecated, use something else instead.
There are some libraries in the PyData ecosystem that use HTML and require their own styling. This section shows a few examples.
The HTML below shouldn't display, but it uses RequireJS to make sure that all works as expected. If the widgets don't show up, RequireJS may be broken.
import plotly.io as pio
import plotly.express as px
import plotly.offline as py
pio.renderers.default = "notebook"
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", size="sepal_length")
fig
Here we demonstrate xarray
to ensure that it shows up properly.
import xarray as xr
import numpy as np
data = xr.DataArray(
np.random.randn(2, 3),
dims=("x", "y"),
coords={"x": [10, 20]}, attrs={"foo": "bar"}
)
data