Skip to content
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

Update how output of matplotlib is shown #2

Open
1 of 2 tasks
Cheukting opened this issue Jun 13, 2023 · 0 comments
Open
1 of 2 tasks

Update how output of matplotlib is shown #2

Cheukting opened this issue Jun 13, 2023 · 0 comments

Comments

@Cheukting
Copy link
Owner

Cheukting commented Jun 13, 2023

As Pyscirpt is in active development, the way how matplotlib result is handled changes. Need to:

  • use display() to show fig in Chapter2 exercise 1 and;
  • display(fig, target="output") for exercise 3

(see https://docs.pyscript.net/latest/reference/API/display.html?highlight=display)

Since display does not know how to replay already existing child properly (maybe worth reporting this issue to pyscript), we need to do a Element("output").clear() before display

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

No branches or pull requests

1 participant