Skip to content

Width options for tables have no effect #261

@lrfinotti

Description

@lrfinotti

Description

The options width and widths have no effect in tables.

To reproduce, create a new notebook with two markdown cells:

:::{table} Test Table
:width: 150px


| A | B |
|---|---|
| 1 | 2 |
:::

and

:::{table} Test Table
:widths: grid


| A | B |
|---|---|
| 1 | 2 |
:::

They look identical. I've tried many other options, such as :widths: 20px 100px or :width: 30%, but it always renders the same.

Some info:

$ uv pip list | grep myst
Using Python 3.13.2 environment at: .venvs/DS
jupyterlab-myst               2.4.2
myst-nb                       1.2.0
myst-parser                   3.0.1
mystmd                        1.3.25
$ uv pip list | grep jupyter
Using Python 3.13.2 environment at: .venvs/DS
jupyter-book                  1.0.4.post1
jupyter-cache                 1.0.1
jupyter-client                8.6.3
jupyter-core                  5.7.2
jupyter-events                0.12.0
jupyter-lsp                   2.2.5
jupyter-server                2.15.0
jupyter-server-mathjax        0.2.6
jupyter-server-terminals      0.5.3
jupyterlab                    4.3.6
jupyterlab-code-formatter     3.0.2
jupyterlab-myst               2.4.2
jupyterlab-pygments           0.3.0
jupyterlab-server             2.27.3
jupyterlab-spellchecker       0.8.4
jupyterlab-widgets            3.0.13
sphinx-jupyterbook-latex      1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions