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
Copy file name to clipboardExpand all lines: quarto.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ The table below gives all of the options for code blocks.
168
168
|`true`| True |
169
169
|`false`| False |
170
170
171
-
Although it's a bit clunky, it's also possible to insert code results in-line with text. Here's a minimal example of that.
171
+
It's also **possible to insert code results in-line with text**. Here's a minimal example of that.
172
172
173
173
````markdown
174
174
---
@@ -180,7 +180,7 @@ number-sections: true
180
180
jupyter: python3
181
181
---
182
182
183
-
## Report
183
+
## Report
184
184
185
185
For a demonstration of a line plot on a polar axis, see @fig-polar.
186
186
@@ -195,16 +195,12 @@ import seaborn as sns
195
195
df = sns.load_dataset("penguins")
196
196
big_pen = df["body_mass_g"].max()
197
197
number = len(df)
198
-
display(
199
-
Markdown(
200
-
"""
198
+
```
199
+
201
200
### The Heaviest Penguin
202
201
203
-
We find that the heaviest penguin, out of a total of {number} penguins, has a mass of {big_pen:.2f} kilograms.
204
-
""".format(big_pen = big_pen, number=number)
205
-
)
206
-
)
207
-
```
202
+
We find that the heaviest penguin, out of a total of `python f"{number}"` penguins, has a mass of `python f"{big_pen:.2f}"` kilograms.
203
+
208
204
````
209
205
210
206
Note that, in this example, the `:2f` part of `{big_pen:.2f}` is an instruction to report the given number to 2 decimal places.
@@ -262,7 +258,7 @@ quarto render jupyter-report.ipynb --execute --to html
262
258
263
259
## The Optimal Workflow for Writing Automated Reports
264
260
265
-
This is an alternative to using the Visual Studio Code **Quarto** extension.
261
+
This is an alternative to using the Visual Studio Code **Quarto** extension.
266
262
267
263
We now turn to a big tip on the optimal workflow for making automated reports and slides. Often you are interested in seeing how the final report will look as you change the code in *real time*. This is possible with Jupyter Notebooks and **Quarto**. Run the following in the terminal
0 commit comments