jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

Inserting LaTeX with variables

Open yuxi-liu-wired opened this issue 2 years ago • 0 comments

Context

I have a fitted linear equation like $y = k * x + b$, where $k, b$ are learned on a dataset. I want it so that the variables $k, b$ can be referred to in the text, something like

params_latex = fr'$y = {k_fit:.2f}x + {b_fit:.2f}$'

then {eval}{params_latex }.

Proposal

No response

Tasks and updates

No response

yuxi-liu-wired avatar Sep 28 '23 05:09 yuxi-liu-wired