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

Makie table extension #24

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Makie table extension #24

wants to merge 1 commit into from

Conversation

jkrumbiegel
Copy link
Collaborator

Allows to place tables into Makie figures looking something like this:

image

Comment on lines +56 to +63
Base.Experimental.register_error_hint(MethodError) do io, exc, argtypes, kwargs
if exc.f === makie_table!
if isempty(methods(exc.f))
print(io, "\n$(exc.f) has no methods, yet. Makie has to be loaded for the table extension to be activated. Run `using Makie`, `using CairoMakie`, `using GLMakie` or any other package that also loads Makie.")
end
end
end
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be more straightforward to just define an ::Any method on makie_table! that prints out this message rather than doing an error hint?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had a fallback version with args... first and then removed that again for this, I don't remember my rationale though

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.

2 participants