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

Errors in show method for Juno plot pane are swallowed #290

Open
yha opened this issue Feb 9, 2019 · 0 comments
Open

Errors in show method for Juno plot pane are swallowed #290

yha opened this issue Feb 9, 2019 · 0 comments

Comments

@yha
Copy link

yha commented Feb 9, 2019

MWE:

using Interact
struct A end
Base.show(io::IO, ::MIME"image/png", ::A) = error()
@manipulate for a=1:5
    a == 5 ? A() : a
end

When run inside Juno, and the slider is moved to 5, it stops updating, but the error is not reported.
This affects rendering of plots if there's a mistake that prevents it from being shown, e.g.

using Plots
@manipulate for i=1:5
    plot([0],title=i)
end

fails with no error message.

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