# \[ANN\] PrettyTables v0.5.0 - Added helpers to improve experience!

**URL:** https://discourse.julialang.org/t/ann-prettytables-v0-5-0-added-helpers-to-improve-experience/25731
**Category:** Community
**Created:** [June 26, 2019, 4:25pm UTC](https://discourse.julialang.org/t/ann-prettytables-v0-5-0-added-helpers-to-improve-experience/25731 "2019-06-26T16:25:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)
#### Post date: [June 26, 2019, 4:25pm UTC](https://discourse.julialang.org/t/ann-prettytables-v0-5-0-added-helpers-to-improve-experience/25731/1 "2019-06-26T16:25:20Z")

</div>

Hi guys!

I have just tagged a new version of [PrettyTables.jl](https://github.com/ronisbr/PrettyTables.jl) (v0.5.0).

# Helpers

It turns out that the number of options we have now is huge and the commands to print the formatted tables as we want is sometimes very, very large. This was bothering me, because for most of my analysis I want a fix set of configurations while I am looking at the data. Hence, I came up with a mechanism that I think will help! It more or less like a global configuration.

First, we have the `@pt` macro that will pretty print the tables after it. Like:

 ![42](https://global.discourse-cdn.com/julialang/original/3X/d/d/ddee9cf133a2e864de2495eeba777a37be12dfd7.jpeg)

By default, it will use the default configurations as described in the documentation of the function `pretty_table`. However, we can modify any of the configurations in the keywords of that function by using the other macro `@ptconf`:

 ![11](https://global.discourse-cdn.com/julialang/original/3X/7/9/794fca4d8986f07543e603a4f641a939647c06c2.jpeg)

**NOTE** : The `tf` parameter is not a keyword of `pretty_table`, but can be used to change the table format.

All calls to `@pt` will now use the configurations assigned by `@ptconf`. If the user wants to go back to default, just call `@ptconfclean`.

Finally, if the user wants to add a header, then they must add an assignment to the “virtual” variable `:header` just like in:

 ![36](https://global.discourse-cdn.com/julialang/original/3X/4/c/4cf4327f5eb4e8f507ad7ed51950da599de38857.jpeg)

I think we can improve this, so, please, give me feedback about it (ah, I have just implemented it and did not have much time to test, so expect bugs…).

# Other features

I also implemented two additional features:

1. The `highlighters` keyword can now receive just one highlighter without needing to add it to a `Tuple`.
2. There is now a keyword `nosubheader` to suppress the sub-header printing. This is useful if the user wants to print a `DataFrame` without the type (thanks @xgdgsc) :

 ![11](https://global.discourse-cdn.com/julialang/original/3X/2/1/2131ba1d15c8dec30b827e46312289249aecd6c7.jpeg)

---

<div class="post-metadata">

### Author: ![braamvandyk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/braamvandyk/32/5086_2.png) [@braamvandyk](https://discourse.julialang.org/u/braamvandyk)
#### Post date: [June 27, 2019, 2:03pm UTC](https://discourse.julialang.org/t/ann-prettytables-v0-5-0-added-helpers-to-improve-experience/25731/2 "2019-06-27T14:03:01Z")

</div>

Beautiful! Thanks.

---

<div class="post-metadata">

### Author: ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)
#### Post date: [June 27, 2019, 9:01pm UTC](https://discourse.julialang.org/t/ann-prettytables-v0-5-0-added-helpers-to-improve-experience/25731/3 "2019-06-27T21:01:12Z")

</div>

Fantastic! The `nosubheader` option is something I’ve been pining for, but the rest looks great too!

---

<div class="post-metadata">

### Author: ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)
#### Post date: [June 27, 2019, 10:41pm UTC](https://discourse.julialang.org/t/ann-prettytables-v0-5-0-added-helpers-to-improve-experience/25731/4 "2019-06-27T22:41:30Z")

</div>

Excellent! Good to know 🙂 this was an idea of @xgdgsc.
