displayable
displayable(mime) -> Bool displayable(d::Display, mime) -> Bool
Returns a boolean value indicating whether the given mime
type (string) is displayable by any of the displays in the current display stack, or specifically by the display d
in the second variant.
Examples
Example 1: Check if a MIME type is displayable
julia> displayable("text/plain")
true
julia> displayable("image/png")
true
julia> displayable("application/pdf")
false
In this example, displayable
is used to check if the given MIME type is displayable. The function returns true
if the MIME type can be displayed by any display in the current display stack.
Example 2: Check if a MIME type is displayable by a specific display
julia> d = display("display1");
julia> displayable(d, "text/plain")
true
julia> displayable(d, "image/jpeg")
false
In this example, displayable
is used to check if the given MIME type can be displayed by the specific display d
. The function returns true
if the MIME type is displayable by the specified display.
Note: The examples above are for illustrative purposes and the actual output may vary depending on the available displays and MIME types.
See Also
:@printf, :@sprintf, display, displayable, dump, info, isprint, print, println, print_escaped, print_joined, print_shortest, print_unescaped, print_with_color, pushdisplay, redisplay, show, showall, showcompact, sprint, versioninfo,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.