pygwalker icon indicating copy to clipboard operation
pygwalker copied to clipboard

Clone repo and run locally

Open JeevankumarDharmalingam opened this issue 10 months ago • 8 comments

Can we clone this repo locally and run with available files for streamlit. Can you please throw some light upon it

JeevankumarDharmalingam avatar Apr 25 '24 15:04 JeevankumarDharmalingam

Do you need to develop pygwalker, or just import it?

Local develop, refer it: https://pygwalker.kanaries.net/installation#local-development

Import it, download the built package, https://pypi.org/project/pygwalker/#files

longxiaofei avatar Apr 26 '24 01:04 longxiaofei

I need to add some features like Authorization and Authentication, So i need to work on the api's coming back from communication.ts add security features and need to validate it in backend while using it in streamlit. Will PYG-Walker Work with Gradio as well ?

JeevankumarDharmalingam avatar Apr 26 '24 03:04 JeevankumarDharmalingam

Maybe you can consider putting authentication data into cookies, then patching pygwalker

from pygwalker.communications import streamlit_comm

class PrvivatePygwalkerHandler(streamlit_comm.PygwalkerHandler):
    def post(self, gid: str):
        print(self.cookies)
        return super().post(gid)

streamlit_comm.PygwalkerHandler = PrvivatePygwalkerHandler

longxiaofei avatar Apr 26 '24 04:04 longxiaofei

gradio demo: https://github.com/Kanaries/pygwalker/blob/main/examples/gradio_demo.py

longxiaofei avatar Apr 26 '24 04:04 longxiaofei

Any plans to develop it as dashboard kind of app ?

JeevankumarDharmalingam avatar Apr 30 '24 03:04 JeevankumarDharmalingam

Basically, you can develop a dashboard system based on pygwalker with streamlit/gradio or even flask. If you want a out-of-box solution, you can connect your pygwalker with kanaries cloud, in which you can publish your work from pygwalker to cloud, edit, share and embed anywhere. We also provide OpenAPI for some developers to develop their own dashboard system without building the whole system by themselves.

For open source, we are considering wthether to open source an independent dashboard editing system in pygwalker ecosystem, not a part of pygwalker.

ObservedObserver avatar Apr 30 '24 03:04 ObservedObserver

Is there demo where we can develop POC with Flask and having pygwalker part (section) of another Application, Or can you please guide this community how to do it

JeevankumarDharmalingam avatar May 02 '24 11:05 JeevankumarDharmalingam

Hey Kindly lemme know the wrap up for flask getting started

JeevankumarDharmalingam avatar May 14 '24 03:05 JeevankumarDharmalingam

Hi @JeevankumarDharmalingam , I will try to use flask or other web frameworks to build a POC in next week.

longxiaofei avatar May 17 '24 15:05 longxiaofei

Thanks that would be helpful, Appreciate it !

JeevankumarDharmalingam avatar May 23 '24 18:05 JeevankumarDharmalingam

@JeevankumarDharmalingam refer it: https://github.com/Kanaries/pygwalker/blob/main/examples/web_server_demo.py

longxiaofei avatar May 25 '24 01:05 longxiaofei

Thanks for the demo , there's one more request in below api is called from pygwalker http://127.0.0.1:8080/_pygwalker/comm/test0

Is it possible to add bearer token in the header of this api call ?

JeevankumarDharmalingam avatar Jun 03 '24 07:06 JeevankumarDharmalingam