-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Very simple example showing usage in marimo.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
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,31 @@ | ||
# /// script | ||
# requires-python = ">=3.10" | ||
# dependencies = [ | ||
# "pygwalker==0.4.9.13", | ||
# "vega-datasets==0.9.0", | ||
# ] | ||
# /// | ||
import marimo | ||
|
||
__generated_with = "0.9.14" | ||
app = marimo.App(width="medium") | ||
|
||
|
||
@app.cell | ||
def __(): | ||
import pygwalker as pyg | ||
|
||
from vega_datasets import data | ||
return data, pyg | ||
|
||
|
||
@app.cell | ||
def __(data, pyg): | ||
df = data.iris() | ||
|
||
pyg.walk(df) | ||
return (df,) | ||
|
||
|
||
if __name__ == "__main__": | ||
app.run() |