Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change freeze_column_left in-place won't update freezing #2355

Closed
metaboulie opened this issue Sep 19, 2024 · 1 comment
Closed

Change freeze_column_left in-place won't update freezing #2355

metaboulie opened this issue Sep 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@metaboulie
Copy link
Contributor

metaboulie commented Sep 19, 2024

Describe the bug

Run the following code in a cell

mo.ui.table(
    df,
    freeze_columns_left=["Name", "Year"]
)

Then update freeze_columns_left or freeze_columns_right

mo.ui.table(
    df,
    freeze_columns_left=["Name"]
)

The freezing doesn't change, both "Name" and "Year" are still pinned

Screenshot 2024-09-19 at 13 19 25

Environment

{
  "marimo": "0.8.17",
  "OS": "Darwin",
  "OS Version": "22.3.0",
  "Processor": "arm",
  "Python Version": "3.12.6",
  "Binaries": {
    "Browser": "--",
    "Node": "v22.8.0"
  },
  "Dependencies": {
    "click": "8.1.7",
    "importlib-resources": "missing",
    "jedi": "0.19.1",
    "markdown": "3.7",
    "pygments": "2.18.0",
    "pymdown-extensions": "10.9",
    "ruff": "0.6.5",
    "starlette": "0.38.5",
    "tomlkit": "0.13.2",
    "typing-extensions": "missing",
    "uvicorn": "0.30.6",
    "websockets": "12.0"
  },
  "Optional Dependencies": {
    "pandas": "2.2.2",
    "polars": "1.7.1"
  }
}

Code to reproduce

import marimo

__generated_with = "0.8.17"
app = marimo.App(width="medium")


@app.cell
def __():
    import marimo as mo
    return mo,


@app.cell
def __():
    from vega_datasets import data
    return data,


@app.cell
def __(data):
    df = data.cars()
    return df,


@app.cell
def __(df, mo):
    mo.ui.table(
        df,
        freeze_columns_left=["Name", "Year"],
    )
    return


if __name__ == "__main__":
    app.run()
@metaboulie metaboulie added the bug Something isn't working label Sep 19, 2024
@metaboulie metaboulie changed the title Change freeze_column_left in-place won't freeze column Change freeze_column_left in-place won't update freezing Sep 19, 2024
@metaboulie
Copy link
Contributor Author

This seems to be have fixed in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant