PythonCall.jl
PythonCall.jl copied to clipboard
Width & height info of the terminal is not passed to the Julia side?
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.
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.
Actually I'm not sure what you mean. Can you give me an example?