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

ENV["COLUMNS"] not working as expected in Jupyter Lab #2266

Closed
lungben opened this issue May 22, 2020 · 3 comments
Closed

ENV["COLUMNS"] not working as expected in Jupyter Lab #2266

lungben opened this issue May 22, 2020 · 3 comments

Comments

@lungben
Copy link

lungben commented May 22, 2020

ENV["COLUMNS"] seems not to work correctly:

using DataFrames
df = DataFrame()
for i=1:100
    df[!, Symbol(i)] = 1:10
end
ENV["COLUMNS"]="20"
df

This shows only 3 columns (not 20) for me when executed in Jupyter Lab.
Setting COLUMNS to very high numbers shows all columns.

Environment:
Jupyter Datascience Notebook Docker container, Julia 1.4.1, DataFrames.jl version 0.21 and master.
I got the same issue for Jupyter Lab in a Windows Conda environment.

@lungben
Copy link
Author

lungben commented May 22, 2020

Sorry, I missed the corresponding description in the manual.
Thanks for nilshg for pointing it out in
https://discourse.julialang.org/t/problem-with-package-tableview-julia-usage/39369/8

@lungben lungben closed this as completed May 22, 2020
@bkamins
Copy link
Member

bkamins commented May 22, 2020

"COLUMNS" is number of "terminal columns" (so for most characters it is number of characters, but some characters do not have width 1)

@lungben
Copy link
Author

lungben commented May 22, 2020

Sorry, I somehow over-read this point in the documentation and implicitly assumed that it does the same as Pandas pdf.options.display.max_columns.
Thanks!

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