# /// script
# requires-python = ">=3.11"
# dependencies = [
#     "marimo",
# ]
# ///
# Copyright 2026 Marimo. All rights reserved.

import marimo

__generated_with = "0.19.6"
app = marimo.App()


@app.cell
def _():
    import marimo as mo
    return (mo,)


@app.cell
def _(mo):
    kinds = [
        # ---
        "note",
        # ---
        "danger",
        "error",
        "caution",
        # ---
        "hint",
        # ---
        "important",
        # ---
        "tip",
        # ---
        "attention",
        "warning",
    ]


    def create(kind):
        return mo.md(
            f"""
    /// {kind} | {kind} admonition
    This is an admonition for {kind}
    ///
            """
        )


    mo.vstack([create(kind) for kind in kinds])
    return


@app.cell
def _(mo):
    mo.md("""
    # Misc
    """)
    return


@app.cell
def _(mo):
    mo.md("""
    /// important |
    This is an admonition box without a title.
    ///
    """)
    return


@app.cell
def _(mo):
    mo.md(r"""
    /// tip |
    Importa recordar as seguintes regras de diferenciação de matrizes:

    $$\frac{\partial\, u'v}{\partial\, v} = \frac{\partial\, v'u}{\partial\, v} = u$$

    sendo $u$ e $v$ dois vetores.

    $$\frac{\partial\, v'Av}{\partial\, v}=2Av=2v'A$$

    em que $A$ é uma matriz simétrica. No nosso caso, $A=X'X$ e $v=\hat{\boldsymbol{\beta}}$.
    ///
    """)
    return


if __name__ == "__main__":
    app.run()
