You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also use computed values directly in your article text by using inline code. Read more in [Inline Code](/docs/computations/inline-code.qmd).
213
213
:::
214
214
@@ -226,6 +226,20 @@ When rendered, it displays as:
226
226
You can read more about using code inline at [Inline Code](/docs/computations/execution-options.qmd#inline-code).
227
227
:::
228
228
229
+
::: {.content-visible when-meta="tool.is_vscode"}
230
+
You can use computed values directly in your article text using the syntax `` `{{python}} expr` ``. For example, consider this line in `index.qmd`:
231
+
232
+
```markdown
233
+
Based on data up to and including 1971, eruptions on La Palma happen every `{{python}} f"{avg_years_between_eruptions:.1f}"` years on average.
234
+
```
235
+
236
+
When rendered, it displays as:
237
+
238
+
> Based on data up to and including 1971, eruptions on La Palma happen every 79.8 years on average.
239
+
240
+
You can read more about using code inline at [Inline Code](/docs/computations/execution-options.qmd#inline-code).
241
+
:::
242
+
229
243
Rather than including computations directly in your article you can also embed outputs from other notebooks, read more below in [Embedding Notebooks](#embed).
0 commit comments