What the book will port
Every source the book plans to port, page by page, with the release of tabelline that can port it. Sources go from the simplest to the most complex, and so do their pages: first the ones that can be ported now, then the ones that wait for a release. The first page has the sources in one table.
How the pages are found: each source says where its pages are, a GitHub repository and the
paths of its pages, and book/plan/plan.nim lists the repository, so a page added there shows
up here (marked To triage until someone reads it), and a page that is gone is reported. The
Table Contest entries are listed by hand, one repository each, and their code is read whole;
saving the table as a picture (gtsave) does not count.
How it is measured: book/plan/plan.nim reads each page's code, finds the gt and Great Tables
functions it calls, and looks each one up in the
feature map, where every gt feature
has its status and the release it is planned for. A page can be ported in the first release
that has every feature it calls. It is a first sieve: it sees the functions, not their
arguments, so a page that can be ported "now" can still find gaps when it is ported, as the
Get Started guide found a dozen. Those go to What the port found and to the
build of the next release.
Great Tables: Get Started
The first guide of Great Tables: the parts of a table, formats, styles, themes, selections. By Rich Iannone, Michael Chow and the Great Tables contributors (Posit), MIT licence. Read it.
| Page | Can be ported | What it waits for |
|---|---|---|
| Column Labels | Ported | |
| Formatting Values | Ported | |
| Header and Footer | Ported | |
| Stub (Row Labels) | Ported | |
| Styling the Table Body | Ported | |
| Colorizing with Data | Ported | |
| Column Selection | Ported | |
| Contributing Guidelines How to contribute to Great Tables | Left out | |
| Extending Great Tables About extending Great Tables in Python | Left out | |
| Intro | Ported | |
| Location selection | Ported | |
| Nanoplots | Ported | |
| Overview | Ported | |
| Row Selection | Ported | |
| Table Theme Options | Ported | |
| Premade Themes | Ported | |
| Styling the whole table | Ported | |
| Technical notes Notes on Great Tables' own data structures | Left out |
gt: Introduction to Creating gt Tables
gt's own first guide, the R side of the same ideas. By Richard Iannone and the gt authors (Posit), MIT licence. Read it.
| Page | Can be ported | What it waits for |
|---|---|---|
| Introduction to Creating gt Tables | Now |
Great Tables blog
One post per release and one per idea: each a few tables, with the story of why. By Rich Iannone, Michael Chow, Jules Walzer-Goldfeld and others (Posit), MIT licence. Read it.
Great Tables examples
A gallery of finished tables, each with its code. By The Great Tables contributors (Posit), MIT licence. Read it.
| Page | Can be ported | What it waits for |
|---|---|---|
| Examples | Now | |
| Sports earnings | Now | |
| Gini coefficient (with gt-extras) | Later | Later: Plots, icons and themes from gt-extras |
gt: case studies and articles
Long tables built step by step: cars, clinical trials, summary lines, gt's datasets. By Richard Iannone and the gt authors (Posit), MIT licence. Read it.
| Page | Can be ported | What it waits for |
|---|---|---|
| Case Study: Clinical Tables In this book | Ported | |
| Case Study: gtcars In this book | Ported | |
| Creating Summary Lines In this book | Ported | |
| gt Datasets | Now | |
| gt interactive tables Interactive tables are tabellone, a later idea | Later | Later: Interactive tables |
| gt visual tests gt's tests of its renderers side by side, not a guide | Left out | Later: Interactive tables |
gt-extras
Plots, icons and themes in cells, for Great Tables. By Jules Walzer-Goldfeld and the gt-extras contributors, MIT licence. Read it.
| Page | Can be ported | What it waits for |
|---|---|---|
| Examples The tables of Examples With Code, without the code | Left out | |
| An NFL season | Now | |
| Get Started Empty for now | Left out | |
| Introduction | Later | Later: Plots, icons and themes from gt-extras |
| Examples With Code | Later | Later: Plots, icons and themes from gt-extras |
gtExtras
The R original of gt-extras: sparklines, bars, themes. By Thomas Mock, MIT licence. Read it.
| Page | Can be ported | What it waits for |
|---|---|---|
| Plotting with gtExtras | Later | Later: Plots, icons and themes from gt-extras |
Posit Table Contest entries
Tables made to win, one entry at a time, from 2020 to 2025: every entry with its code on GitHub (book/plan/contest.nim collects them from Posit Community and the winners posts). An entry with no licence is an idea to redo, not code to port. By Each entrant, per entry licence. Read it.
Its 194 entries with code on GitHub, and which of them tabelline can redo, are in The Table Contest.
Great Tables API reference examples
The examples on the reference page of every Great Tables method and helper, from their docstrings. By Rich Iannone, Michael Chow and the Great Tables contributors (Posit), MIT licence. Read it.
Its 104 pages with examples, one per function, are found by the features they show, in Find an example by feature.
gt reference examples
The examples on the help page of every gt function, small and one feature at a time: ported with each feature as it lands, in the specs. By The gt authors (Posit), MIT licence. Read it.
Its 173 pages with examples, one per function, are found by the features they show, in Find an example by feature.
Not yet mapped
Sources the book wants to port too, once their pages are listed and their licence allows it.
| Source | What it has |
|---|---|
| pandas Styler user guide BSD-3-Clause licence | Styling a data frame in pandas: the same tables seen from the data frame |
| gtsummary MIT licence | Summary and regression tables on top of gt: needs statistics, not only tables |
| reactable MIT licence | Interactive tables: for tabellone, the grid idea |
import tabbook, sources
bookInit()
nbText: """
# What the book will port
Every source the book plans to port, page by page, with the release of tabelline that can
port it. Sources go from the simplest to the most complex, and so do their pages: first the
ones that can be ported now, then the ones that wait for a release. The
[first page](index.html) has the sources in one table.
How the pages are found: each source says where its pages are, a GitHub repository and the
paths of its pages, and `book/plan/plan.nim` lists the repository, so a page added there shows
up here (marked *To triage* until someone reads it), and a page that is gone is reported. The
Table Contest entries are listed by hand, one repository each, and their code is read whole;
saving the table as a picture (`gtsave`) does not count.
How it is measured: `book/plan/plan.nim` reads each page's code, finds the gt and Great Tables
functions it calls, and looks each one up in the
[feature map](https://pietroppeter.github.io/tabelline/coverage/), where every gt feature
has its status and the release it is planned for. A page can be ported in the first release
that has every feature it calls. It is a first sieve: it sees the functions, not their
arguments, so a page that can be ported "now" can still find gaps when it is ported, as the
*Get Started* guide found a dozen. Those go to [What the port found](gaps.html) and to the
build of the next release.
"""
for s in sources["sources"]:
let id = s["id"].getStr
var text = "## " & s["title"].getStr & "\n\n" & s["what"].getStr & ". By " & s["by"].getStr &
", " & s["licence"].getStr & " licence. [Read it](" & s["url"].getStr & ")."
if s.isContest:
# a few hundred entries: they have a page of their own
text.add "\n\nIts " & $pagesOf(id).len & " entries with code on GitHub, and which of them " &
"tabelline can redo, are in [The Table Contest](contest.html)."
elif s.isReference:
# a help page per function: too many for a table here, so they are found by feature
text.add "\n\nIts " & $pagesOf(id).len & " pages with examples, one per function, are found " &
"by the features they show, in [Find an example by feature](features.html)."
nbText: text
if not s.isReference and not s.isContest:
nbTable pagesTable(id, ported = s["status"].getStr == "ported")
nbText: """
## Not yet mapped
Sources the book wants to port too, once their pages are listed and their licence allows it.
"""
nbTable candidatesTable()
bookSave()
On GitHub: book/next.nim