Skip to content

AssertionError when reloading the page #477

Answered by elimintz
falkoschindler asked this question in Q&A
Discussion options

You must be logged in to vote

The reason for that is that justpy would not scale if the memory needed to hold each WebPage on the server were not reclaimed when the page in the browser is closed.

If you don't want the wp object deleted when the browser page is closed use the delete_flag:

import justpy as jp

wp = jp.WebPage(delete_flag=False)
wp.add(jp.Div(text='Hello, world!'))

jp.justpy(lambda: wp)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by falkoschindler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request question not an issue but a question core
3 participants
Converted from issue

This discussion was converted from issue #469 on August 30, 2022 10:09.