Kanaries / pygwalker

PyGWalker: Turn your pandas dataframe into an interactive UI for visual analysis
https://kanaries.net/pygwalker
Apache License 2.0
13.45k stars 704 forks source link

Copy Code is not putting code into clipboard. #324

Closed jjpantano closed 11 months ago

jjpantano commented 1 year ago

I cannot copy code. I have tried several browsers and both are able to copy information. The clipboard contains previous data and is not being updated.

jjpantano commented 1 year ago

I do not have a save icon on my display. Has it been removed?

longxiaofei commented 1 year ago

@jjpantano Hi, Could you please provide the version of pygwalker and the code you invoked it?

jjpantano commented 1 year ago

Thanks for all the good work. Here's the version number, a screenshot of the toolbar, and the code.

pygwalker==0.3.15 [image: image.png] import pygwalker as pyg import pandas as pd import streamlit.components.v1 as components import streamlit as st

Adjust the width of the Streamlit page

st.set_page_config( page_title="Use Pygwalker In Streamlit", layout="wide" )

Add Title

st.title("Use Pygwalker In Streamlit")

Import your data

df = pd.read_csv(" https://kanaries-app.s3.ap-northeast-1.amazonaws.com/public-datasets/bike_sharing_dc.csv ")

Generate the HTML using Pygwalker

pyg_html = pyg.to_html(df)

Embed the HTML into the Streamlit app

components.html(pyg_html, height=1000, scrolling=True)

On Tue, Nov 21, 2023 at 5:20 PM Douding @.***> wrote:

@jjpantano https://github.com/jjpantano Hi, Could you please provide the version of pygwalker and the code you invoked it?

— Reply to this email directly, view it on GitHub https://github.com/Kanaries/pygwalker/issues/324#issuecomment-1821898018, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJA2AATMELYLRKVAFAWBL4TYFVAMTAVCNFSM6AAAAAA7VDJMY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRHA4TQMBRHA . You are receiving this because you were mentioned.Message ID: @.***>

-- John Pantano PhD LinkedIn https://www.linkedin.com/pub/john-pantano/2a/559/91b Page 406 490-8387

longxiaofei commented 1 year ago

The html of pygwalker currently didn't support saving feature.

I recommend you to use the new api in streamlit, refer it: https://github.com/Kanaries/pygwalker/wiki/About-PyGWalker-0.3.8.

jjpantano commented 1 year ago

Thanks for the quick response. I'm also using Pygwalker in Jupyter Notebook and there the copy code does not work there either. Can I revert to the previous version to get that function or should I wait until that function is operating again?

Thanks John

On Wed, Nov 22, 2023 at 8:19 AM Douding @.***> wrote:

The html of pygwalker currently didn't support saving feature.

I recommend you to use the new api in streamlit, refer it: https://github.com/Kanaries/pygwalker/wiki/About-PyGWalker-0.3.8.

— Reply to this email directly, view it on GitHub https://github.com/Kanaries/pygwalker/issues/324#issuecomment-1822972036, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJA2AAQWNKHSOWTEJGID72TYFYJYJAVCNFSM6AAAAAA7VDJMY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSHE3TEMBTGY . You are receiving this because you were mentioned.Message ID: @.***>

-- John Pantano PhD LinkedIn https://www.linkedin.com/pub/john-pantano/2a/559/91b Page 406 490-8387

longxiaofei commented 1 year ago
I do not have a save icon on my display. Has it been removed?

Does save icon refer to export code icon or save icon? (Your screenshot seems to have not been successfully uploaded)

export code icon: image

save icon: image

Currently these features are worked in pygwalker 0.3.15.