-
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
+198
−35
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1a15056
support deletion
abidlabs be98907
changes
abidlabs 23faa1b
changes
abidlabs 5c4d7df
add changeset
gradio-pr-bot e63161a
Merge branch 'main' into df-del
abidlabs 9ea67d2
update icons
abidlabs 4456031
add changeset
gradio-pr-bot 2436715
notebook
abidlabs 6ad0d96
Merge branch 'df-del' of github.com:gradio-app/gradio into df-del
abidlabs 7a02f03
changes
abidlabs 36412ec
simplify
abidlabs 1d7df70
fix icons
abidlabs d6750fe
changes
abidlabs cdf49a1
changes
abidlabs 12f696a
Merge branch 'main' into df-del
abidlabs d860c3f
Merge branch 'main' into df-del
abidlabs 074f667
change
abidlabs a360c62
revert
abidlabs 2d64b78
Merge branch 'main' into df-del
abidlabs 32f2b8e
Merge branch 'main' into df-del
abidlabs de458be
flaky test
abidlabs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@gradio/core": patch | ||
"@gradio/dataframe": patch | ||
"gradio": patch | ||
--- | ||
|
||
feat:Support column/row deletion in `gr.DataFrame` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<script lang="ts"> | ||
export let icon: string; | ||
</script> | ||
|
||
{#if icon == "add-column-right"} | ||
<svg viewBox="0 0 24 24" width="16" height="16"> | ||
<rect | ||
x="4" | ||
y="6" | ||
width="4" | ||
height="12" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
fill="none" | ||
/> | ||
<path | ||
d="M12 12H19M16 8L19 12L16 16" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
fill="none" | ||
stroke-linecap="round" | ||
/> | ||
</svg> | ||
{:else if icon == "add-column-left"} | ||
<svg viewBox="0 0 24 24" width="16" height="16"> | ||
<rect | ||
x="16" | ||
y="6" | ||
width="4" | ||
height="12" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
fill="none" | ||
/> | ||
<path | ||
d="M12 12H5M8 8L5 12L8 16" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
fill="none" | ||
stroke-linecap="round" | ||
/> | ||
</svg> | ||
{:else if icon == "add-row-above"} | ||
<svg viewBox="0 0 24 24" width="16" height="16"> | ||
<rect | ||
x="6" | ||
y="16" | ||
width="12" | ||
height="4" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
/> | ||
<path | ||
d="M12 12V5M8 8L12 5L16 8" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
fill="none" | ||
stroke-linecap="round" | ||
/> | ||
</svg> | ||
{:else if icon == "add-row-below"} | ||
<svg viewBox="0 0 24 24" width="16" height="16"> | ||
<rect | ||
x="6" | ||
y="4" | ||
width="12" | ||
height="4" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
/> | ||
<path | ||
d="M12 12V19M8 16L12 19L16 16" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
fill="none" | ||
stroke-linecap="round" | ||
/> | ||
</svg> | ||
{:else if icon == "delete-row"} | ||
<svg viewBox="0 0 24 24" width="16" height="16"> | ||
<rect | ||
x="5" | ||
y="10" | ||
width="14" | ||
height="4" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
/> | ||
<path | ||
d="M8 7L16 17M16 7L8 17" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
stroke-linecap="round" | ||
/> | ||
</svg> | ||
{:else if icon == "delete-column"} | ||
<svg viewBox="0 0 24 24" width="16" height="16"> | ||
<rect | ||
x="10" | ||
y="5" | ||
width="4" | ||
height="14" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
/> | ||
<path | ||
d="M7 8L17 16M17 8L7 16" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
stroke-linecap="round" | ||
/> | ||
</svg> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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