jupyter-book
jupyter-book copied to clipboard
Inserting LaTeX with variables
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