Skip to content

Width & height info of the terminal is not passed to the Julia side? #216

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

Closed
findmyway opened this issue Sep 6, 2022 · 2 comments
Closed

Comments

@findmyway
Copy link

When displaying some custom julia struct in IPython, the string output is wrapped. But when I try jl.display instead, the struct is displayed correctly as expected.

I'm wondering what we can do to make the printing work as the same in Julia REPL.

@cjdoris
Copy link
Collaborator

cjdoris commented Sep 6, 2022

I've thought about this before and AFAIK there is no generic method to get the display size of a Python file object, so this can't be solved in general.

However, as a special case, we could check if the file object is actually stdout or stderr, and if so use its display size.

@cjdoris
Copy link
Collaborator

cjdoris commented Sep 9, 2022

Actually I'm not sure what you mean. Can you give me an example?

@cjdoris cjdoris closed this as completed Oct 10, 2022
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