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

use compact mode when printing by default #181

Open
Roger-luo opened this issue Jan 14, 2022 · 3 comments
Open

use compact mode when printing by default #181

Roger-luo opened this issue Jan 14, 2022 · 3 comments

Comments

@Roger-luo
Copy link

currently, when executing the Literate script, it redirects the IO to a buffer

https://github.com/fredrikekre/Literate.jl/blob/master/src/Literate.jl#L495

this is not very consistent with what people will see in a REPL and could be inconvenient
if it is built with web pages. It would be nice to have an IOContext that has :compact=>true
as default, or at least have an option for this

@fredrikekre
Copy link
Owner

See #127, tkf/DisplayAs.jl#14.

@Roger-luo
Copy link
Author

ah thanks!

@Roger-luo
Copy link
Author

Roger-luo commented Apr 19, 2022

@fredrikekre I think DisplayAs doesn't really solve this problem, one need to use that explicit which is not this issues describes - shouldn't the default text/plain output be consistent with REPL? this currently frequently blow up the outputs for me when there is a large array, while everything works just fine in REPL. I think at least the printing should use :compact=>true by default which respects the printing protocols

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

2 participants