quarto-dev / quarto-dev/quarto-cli

fig-width has no effect with jupyter engine

Open
#3,155 6 comments 4 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Nov 3, 2022.

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

Description

Consider the following code:

---
title: "Untitled"
format: pdf
engine: jupyter
---

```{python}
#| echo: false
#| fig-align: center
#| fig-width: 2

import matplotlib.pyplot as plt

x = [1, 2]
y = [2, 3]

plt.plot(x,y)
```

The chosen value for fig-width has no effect. I am using Quarto in RStudio.

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.