Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capture output from display(x) and display(mime, x)
This implement a simple LiterateDisplay and pushes that to the display stack when executing code to capture manual calls to display(x) and display(mime, x), fixes #128.
- Loading branch information
1 parent
5db8c22
commit ceff7a3
Showing
3 changed files
with
90 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ function display_dict(x) | |
elseif showable(image_jpeg, x) # don't send jpeg if we have png | ||
data[string(image_jpeg)] = limitstringmime(image_jpeg, x) | ||
end | ||
# TODO: IJulia logic has changed? Seems to send both html and latex for DataFrame for example | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fredrikekre
Author
Owner
|
||
if showable(text_markdown, x) | ||
data[string(text_markdown)] = limitstringmime(text_markdown, x) | ||
elseif showable(text_html, x) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@fredrikekre No - this is a standard thing. IJulia poduces both outputs. Then uses HTML for display and LaTeX if you want to produce PDF