8000 make append as False in display by madhur-tandon · Pull Request #1807 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

make append as False in display #1807

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

Closed
wants to merge 2 commits into from
Closed

Conversation

madhur-tandon
Copy link
Member

Description

The documentation mentions that append in display is False by default. But it really wasn't.
So the docs were kinda wrong, see here: https://docs.pyscript.net/2023.09.1.RC2/user-guide/#pyscriptdisplay

Also, this PR builds on top of #1806 which fixed a typo from Flase to False.
Even with the typo however, the docs were kinda wrong.

@@ -30,7 +30,7 @@ def test_simple_display(self):
<script type="py">
print('ciao')
from pyscript import display
display("hello world")
display("hello world", append=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think, if we want to be sure about any default, we can keep one of these without the append field ... what do you think?

@@ -202,8 +202,8 @@ def test_multiple_display_calls_same_tag(self):
"""
<script type="py">
from pyscript import display
display('hello')
display('world')
display('hello', append=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

same here ... if we really want to be sure append=True is the default, we should keep this not touched to me

@ntoll
Copy link
Member
ntoll commented Oct 23, 2023

I believe we agreed on discord, that the default should be append=True.

@madhur-tandon
Copy link
Member Author

Thanks @WebReflection and @ntoll

In that case, let's close this PR.

@madhur-tandon madhur-tandon deleted the fix-display-append branch October 23, 2023 13:54
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.

3 participants
0