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

Showing DataFrame generates characters that cannot be displayed in console on windows #953

Closed
mmagnuski opened this issue May 11, 2016 · 11 comments

Comments

@mmagnuski
Copy link

An example below:
df display issue in windows console

My versioninfo():

Julia Version 0.4.5
Commit 2ac304d (2016-03-18 00:58 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
@nalimilan
Copy link
Member

Ah, that's annoying. It's unfortunate that we cannot use these Unicode characters without breaking display in the Windows console. Which Windows version is that?

I guess we have no choice but reverting this until we ship Julia with a better console.

Cc: @gdkrmr

@nalimilan
Copy link
Member

Good news, Wikipedia made me realize the thin lines were supported, only the thick ones are a problem for Windows. Sounds reasonable to use thin lines for now.

@mmagnuski
Copy link
Author

Just btw - these characters generally seem to be wider and therefore the dataframe display is a bit weird (the row separating column names and values is too long). Does it display nicely on non-windows computers or is that intentional?

@femtotrader
Copy link
Contributor

Here is how a DataFrame appears under OS X (10.10.5)

capture d ecran 2016-05-13 a 11 25 49

That's not perfectly aligned

@KristofferC
Copy link
Contributor

Looks like a constant offset though.

@mmagnuski
Copy link
Author

On Windows it's much worse. I'm on my phone, but once I get to the computer I will post a screenshot.

@mmagnuski
Copy link
Author

But see examples here.

@nalimilan
Copy link
Member

Sorry, but we can't do anything about it, that's most likely a console issue. Is the new (thin) character better?

@mmagnuski
Copy link
Author

The thin character works great, thanks! 😄
BTW, you can notice in the GitHub diff (on Chrome/Windows), that the character width seems to be different:
df_char_len_01

@nalimilan
Copy link
Member

Good to know! You can't really trust what is shown on GitHub since it will depend on the exact font used. It's surprising that the widths differ, since AFAICT this is supposed to be a fixed-width font...

@mmagnuski
Copy link
Author

Oh yes, the point was just to show that at least in some fixed-width fonts this character has different width. Looks like a bug in Fonts.jl 😉

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

4 participants