Current state and the future of PrettyTables.jl

Thank you @Ronis_BR ! No rush. Hope you can solve these problems🙏🏼

6 Likes

Thanks!!

1 Like

Hope you can solve your problems soon! If it cheers you up, you should know that this package has massively helped a lot of people.

13 Likes

Thanks!!

Hi @Ronis_BR,
I hope your problems will be solved soon!

I am currently implementing PrettyTables into GenieFramework and I am about to define the following struct type that contains both the data and the configuration.

mutable struct PrettyTable{T}
    data::T
    conf::PrettyTablesConf
end

PrettyTable(data) = PrettyTable(data, PrettyTablesConf())

PrettyTables.pretty_table(@nospecialize(pt::PrettyTable); kwargs...) = pretty_table_with_conf(pt.conf, pt.data; kwargs...)
PrettyTables.pretty_table(@nospecialize(io_or_String), @nospecialize(pt::PrettyTable); kwargs...) = pretty_table_with_conf(pt.conf, pt.data; kwargs...)

Do you think it is reasonable to make that definition part of your package? Other frameworks might also benefit.

If so, I’d be happy to provide a PR including docs and tests.

Hi @hhaensel !

I think it will be very nice. Indeed, there was a lot of request for this. However, maybe it is better to wait for the rewrite because I am changing a lot of things (check the v3 branch).

2 Likes

Will do

1 Like

Had a look into v3 and started a PR add mutable struct `PrettyTable` to comprise data, backend and config by hhaensel · Pull Request #257 · ronisbr/PrettyTables.jl · GitHub

2 Likes

Thanks! I will take a look as soon as possible!

3 Likes

Hi everyone!

Just a small update, after a lot of life stuff, I will be able to resume the work in PrettyTables.jl :slight_smile: I hope to have some news during this weekend!

38 Likes