Skip to content
Discussion options

You must be logged in to vote
---
code-line-numbers: true
---

::: {#fig-sumfunc}

```python
def sum(a, b):
    sum = a + b
    print(f'Sum: {sum}')
    return sum
sum(1,2)
```

Pointless implementation of a sum function

:::

This is documented under https://quarto.org/docs/authoring/figures.html and https://quarto.org/docs/output-formats/html-code.html#highlighting

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
7 replies
@cscheid
Comment options

@cscheid
Comment options

@drriguz
Comment options

@cscheid
Comment options

@drriguz
Comment options

Answer selected by jpmorr
Comment options

You must be logged in to vote
3 replies
@baptiste
Comment options

@AmeliaMN
Comment options

@AmeliaMN
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants