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

Support schema and data change events in Data Explorer protocol #2325

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

wesm
Copy link
Contributor

@wesm wesm commented Feb 26, 2024

UI side of https://github.com/posit-dev/positron-python/pull/389.

There is a parameter indicating whether the DE tab should reset the state of UI components like sorting or filter, so we will need to address that in a follow up PR

wesm added 2 commits February 27, 2024 13:41
Update submodule

update submodule

Revert submodule
@wesm wesm force-pushed the feature/data-explorer-change-events branch from 8cd668b to f3156c5 Compare February 27, 2024 19:41
@wesm
Copy link
Contributor Author

wesm commented Feb 27, 2024

you can use code like this to test

import numpy as np
import pandas as pd

df = pd.DataFrame({'a': [1, 2, 3, 4]})

df = pd.DataFrame(
    {
        "a": [1, 2, 3, 4],
        "b": [True, None, False, True],
        "c": ["Ohio", "Florida", None, "California"],
    }
)

df = pd.DataFrame(
    {
        "a": [-1.0, 0.0, 3.0, 4.0],
        "b": [1, 2, 3, 4],
        "c": [True, None, False, True],
        "d": ["Ohio", "Florida", None, "California"],
    }
)

[

Screen.Recording.2024-02-26.at.4.33.18.PM.mov

](url)

@petetronic
Copy link
Collaborator

Using your branch I was able to see updates (edits, additions, deletions) to the DataFrame reflected live in the DataExplorer.

@wesm wesm merged commit bad7382 into main Feb 27, 2024
1 check passed
@wesm wesm deleted the feature/data-explorer-change-events branch February 27, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants