-
I am looking for a way to use a variable within markdown text using Jupyter Lab. For instance name = "Jennifer" And resulting markdown text is: Jennifer gave an answer of 412.3. I've found some glimmers of a solution around, but nothing has worked for me yet. Seems like the Jupyter Lab/Notebook difference is causing problems. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Here is how you do it in Quarto documents: https://quarto.org/docs/computations/execution-options.html#jupyter This will also work in Jupyter Lab but is not exactly the user experience I'm sure you want. This is being discussed in the Jupyter community but hasn't yet reached a resolution: https://discourse.jupyter.org/t/inline-variable-insertion-in-markdown/10525 |
Beta Was this translation helpful? Give feedback.
Here is how you do it in Quarto documents: https://quarto.org/docs/computations/execution-options.html#jupyter
This will also work in Jupyter Lab but is not exactly the user experience I'm sure you want. This is being discussed in the Jupyter community but hasn't yet reached a resolution: https://discourse.jupyter.org/t/inline-variable-insertion-in-markdown/10525