DataFrames does not care about iocontext[:displaysize]?

I’m just trying to get a DataFrame to not trunctate:

Suppose I have a huge monitor that can easily display statp::DataFrame:

Base.active_repl.options.iocontext[:displaysize] = (100, 6000)

Try every REPL command:

julia> show(statp)
1×9 DataFrame
 Row │ organism                           name                  pw                                 biopaxClass  dataSource                         pathway                            excerpt  numParticipants  numProcesses 
     │ Array…                             String                String                             String       Array…                             Array…                             Nothing  Int64            Int64        
─────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1 │ Any["http://identifiers.org/taxo…  Hedgehog 'off' state  http://identifiers.org/reactome/…  Pathway      Any["http://pathwaycommons.org/p…  Any["http://identifiers.org/reac…                        93            33
julia> display(statp)
1×9 DataFrame
 Row │ organism                           name                  pw                                 biopaxClass  dataSource                         pathway                            excerpt  numParticipants  numProcesses 
     │ Array…                             String                String                             String       Array…                             Array…                             Nothing  Int64            Int64        
─────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1 │ Any["http://identifiers.org/taxo…  Hedgehog 'off' state  http://identifiers.org/reactome/…  Pathway      Any["http://pathwaycommons.org/p…  Any["http://identifiers.org/reac…                        93            33
julia> print(statp)
1×9 DataFrame
 Row │ organism                           name                  pw                                 biopaxClass  dataSource                         pathway                            excerpt  numParticipants  numProcesses 
     │ Array…                             String                String                             String       Array…                             Array…                             Nothing  Int64            Int64        
─────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1 │ Any["http://identifiers.org/taxo…  Hedgehog 'off' state  http://identifiers.org/reactome/…  Pathway      Any["http://pathwaycommons.org/p…  Any["http://identifiers.org/reac…                        93            33

Use the truncate keyword argument:

julia> df = DataFrame(a="a"^100)
1×1 DataFrame
 Row │ a
     │ String
─────┼───────────────────────────────────
   1 │ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa…

julia> show(df, truncate=100)
1×1 DataFrame
 Row │ a
     │ String
─────┼──────────────────────────────────────────────────────────────────────────────────────────────────────
   1 │ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1 Like