elimintz
elimintz
This should work: ```python jp.Route("/", login) def login(): wp = jp.WebPage() jp.Div(a=wp) # Just so page is not empty google = OAuth2Session(client_id=client_id, scope=scope, redirect_uri=redirect_uri) authorization_url, state = google.authorization_url(authorization_base_url) wp.redirect =...
Try changing `wp.redirect(authorization_url)` to `wp.redirect = authorization_url`
Another option I can think of is to use the page_ready event handler https://justpy.io/tutorial/page_events/ The result should be like from the event handler and should work.
Hi Tal, Thanks for using JustPy! Please take a look at this example: ```python import justpy as jp def unpack_test(): wp = jp.WebPage() d = jp.Div(a=wp) d.add(*[jp.Div(text=f'Start Div {i}', classes='m-2')...
I need to think about this. Maybe this discussion https://github.com/tiangolo/fastapi/issues/58 can provide some inspiration meanwhile.
Nice and simple solution, thanks. I'll accept the PR and make the change for the next version. What is missing to make it a general solution, if anything?
In order for this feature to work, changes are required to the ag-grid component, on its JavaScript side. I'll take a deeper look at it and see if I can...
You are right, in these examples they make no difference and should be left out. It is best to use async when the event handler is required to do some...
I am still trying to figure out how to support slots that accept props, it is not a simple problem. If a slot accepts just a component it will work...
Hi, No, still have not found an elegant solution. All the solutions I have so far involve dealing with each slot and prop on an individual basis and would make...