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

Add pygwalker example #2800

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Add pygwalker example #2800

merged 1 commit into from
Nov 5, 2024

Conversation

akshayka
Copy link
Contributor

@akshayka akshayka commented Nov 5, 2024

Very simple example showing usage in marimo.

Copy link

vercel bot commented Nov 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 8:34pm
marimo-storybook 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 8:34pm


@app.cell
def __():
import pygwalker as pyg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you able to achieve rendering the Pygwalker interface using this import? I tried it with datasets hosted through cloud links (S3), tried running this example as is too and it results in the class instance being printed:
<pygwalker.api.pygwalker.PygWalker object at 0x00000124E362B470>

I have found using these imports useful:

from pygwalker.api.marimo import walk # Usage -> walk(_df, spec="spec.json")
import pygwalker.api.marimo as pyg # Usage -> pyg.walk(_df)

this is with regards to the way it was implemented in the Pygwalker PR.

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