Skip to content
Discussion options

You must be logged in to vote

Let me try to clarify the context

```{.python filename="my.py"}
```

this syntax is not related to execution. So this is not execution options.
This syntax is for source code cell and they can take language as class, and some attribute. This is inherited from Pandoc and its fenced_code_attributes extension.

The attributes you can set on those code cells are not the same as the ones for execution. Some can be common, mainly the one you can set on the execution cell that maps to a source code attribute (like filename)

```{python}
```

This syntax is from Quarto and is used for execution. It is a different syntax. In Quarto, options for execution are passed using special comments with YAML.

Y…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@floholl
Comment options

Comment options

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

@cderv
Comment options

@floholl
Comment options

Answer selected by floholl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants