quarto-dev / quarto-dev/quarto-cli

[feature request] Option to extract a single language code chunks from a multi-language notebook

Open
#1,156 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

computations enhancement
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Consider the following code cells in a quarto-document:


## Welcome {.unnumbered}

```{r}
my_list = list(1, 2, 3)
typeof(my_list)
```

```{python}
my_list = [1, 2, 3]
type(my_list)
```

Would it be possible to add a flag to quarto that specifies only R code chunks be written/evaluated? e.g.

## Welcome {.unnumbered}

```{r}
my_list = list(1, 2, 3)
typeof(my_list)
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the mixed R and Python code-cell example in a Quarto document, then inspect the CLI options and execution behavior involved in rendering or evaluating it. Done means a flag can select only the requested language's chunks and produces the R-only result shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, r
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.