-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 column/row deletion in gr.DataFrame
#10420
base: main
Are you sure you want to change the base?
Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-pypi-previews.s3.amazonaws.com/a360c627ea963477993f3bfe972140c07b256796/gradio-5.13.1-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@a360c627ea963477993f3bfe972140c07b256796#subdirectory=client/python" Install Gradio JS Client from this PR npm install https://gradio-npm-previews.s3.amazonaws.com/a360c627ea963477993f3bfe972140c07b256796/gradio-client-1.10.0.tgz Use Lite from this PR <script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/a360c627ea963477993f3bfe972140c07b256796/dist/lite.js""></script> |
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
@@ -0,0 +1,113 @@ | |||
<script lang="ts"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clearer icons
demo/matrix_transpose/run.py
Outdated
@@ -16,6 +16,7 @@ def transpose(matrix): | |||
[np.random.randint(0, 10, (10, 3)).tolist()], | |||
[np.random.randint(0, 10, (10, 10)).tolist()], | |||
], | |||
live=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small change that makes this demo easier to use for testing
|
Thanks @hannahblair both points make sense, I'll fix! |
Both issues should be fixed now @hannahblair. Let me know if you spot any other issues -- otherwise will merge in tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice thanks for addressing those! Tested and confirmed that if col_count
or row_count
is "fixed" then you can't add or remove a row or col.
This is awesome now!! Thanks @abidlabs 🚀🚀
js/dataframe/shared/Table.svelte
Outdated
parent.focus(); | ||
if (row_count[1] !== "dynamic") return; | ||
if (data.length <= 1) return; | ||
console.log("data", data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh we should delete these console.logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Closes: #631, our oldest open issue! Test with any interactive dataframe demo like
demo/matrix_transpose/run.py