quarto-dev / quarto-dev/quarto-cli

Don't fail running chunk interactively in IDE or VSCODE when `ojs_define()` is present in chunk

Open
#4,314 2 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Feb 10, 2023.

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

Description

ojs_define() is a function that can be used in Quarto cells for R Julia and Python. When used in such chunk, one can't execute the cell interactively because the function only works when rendering the whole document.

However, maybe it would be easier for our integrated tool (IDE, VSCODE, ...) to "ignore" the ojs_define() when running the cell interactively. OJS can't work interactively, but other chunks could.

Do you think this is something feasible and valuable ? Not sure how interactive run of cells works in RStudio IDE or VSCODE, and asking here before opening issue in different repo to track idea.

(I got bitten by that once, and some users too that is why I thought about that)

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.