# What exactly does \`ENV\["LINES"\]\` control?

**URL:** <https://discourse.julialang.org/t/what-exactly-does-env-lines-control/53053>\
**Category:** General Usage\
**Tags:** repl, dataframes, environment, display\
**Created:** [January 8, 2021, 5:07pm UTC](https://discourse.julialang.org/t/what-exactly-does-env-lines-control/53053 "2021-01-08T17:07:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Post date:** [January 8, 2021, 5:07pm UTC](https://discourse.julialang.org/t/what-exactly-does-env-lines-control/53053/1 "2021-01-08T17:07:37Z")

</div>

I’m interested in adjusting the number of DataFrame rows which are automatically displayed in the REPL, and according to some posts I’ve read on SO, it seems that changing the value of `ENV["LINES"]` is one way to do this. I figured this would set the maximum number of rows that can be displayed, but even when I set `ENV["LINES"]` to a value much larger than the number of rows (50) in my DataFrame, it still omits 33 rows…so what exactly is `ENV["LINES"]` controlling? (And how does one set the maximum number of rows that can be displayed?)

---

<div class="post-metadata">

**Author:** ![fbanning](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fbanning/32/14972_2.png) [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Post date:** [January 8, 2021, 5:20pm UTC](https://discourse.julialang.org/t/what-exactly-does-env-lines-control/53053/2 "2021-01-08T17:20:31Z")

</div>

![grafik](https://global.discourse-cdn.com/julialang/original/3X/a/0/a0c4100bbb52ab38f4803d5ef723a918689faa04.png)

From [here](https://dataframes.juliadata.org/stable/man/getting_started/index.html), does that help you?

Edit:

> displayed in the REPL

Sorry, just realised you’re talking about the REPL instead of a jupyter notebook.

---

<div class="post-metadata">

**Author:** ![fbanning](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fbanning/32/14972_2.png) [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Post date:** [January 8, 2021, 5:34pm UTC](https://discourse.julialang.org/t/what-exactly-does-env-lines-control/53053/3 "2021-01-08T17:34:24Z")

</div>

So to display all rows of a `DataFrame` in the REPL you can do the following:

`show(df, allrows = true)`

There are other options available for show. Run `?show` in the REPL (after loading DataFrames via `using DataFrames`) to see them.

---

<div class="post-metadata">

**Author:** ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Post date:** [January 8, 2021, 5:53pm UTC](https://discourse.julialang.org/t/what-exactly-does-env-lines-control/53053/4 "2021-01-08T17:53:34Z")

</div>

Thanks, this is useful. Though ideally I’d like to change the default setting so that I can display, for example, a maximum of 20 rows _every time_ I print a DataFrame to the REPL (i.e. without having to explicitly call a function like `show()` each time). Is there a way to do this?

---

<div class="post-metadata">

**Author:** ![fbanning](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fbanning/32/14972_2.png) [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Post date:** [January 8, 2021, 6:02pm UTC](https://discourse.julialang.org/t/what-exactly-does-env-lines-control/53053/5 "2021-01-08T18:02:42Z")

</div>

> [@Michael\_Barmann](#):
>
> Is there a way to do this?

Maybe but not that I know of because I don’t use the REPL for viewing or analysing data except for a quick glance via `describe` or similar actions. Maybe others can tell you how to do this but I personally would recommend that you look into other tools that can help you analyse your datasets more easily and also interactively.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 9, 2021, 8:28am UTC](https://discourse.julialang.org/t/what-exactly-does-env-lines-control/53053/6 "2021-01-09T08:28:17Z")

</div>

The same question was discussed a few weeks ago here: [Configure DataFrame show](https://discourse.julialang.org/t/configure-dataframe-show/51593)
