"Tabular" cells? #866
Unanswered
stillyslalom
asked this question in
Pluto development
Replies: 1 comment 2 replies
-
You can run more than one line with a This seems like a good opportunity to create a macro that converts a block into a more useful format (like the @tabular begin
τ = 2π # The real circle constant!
ω = τ .* f # Angular frequency
end Where the macro assigns each statement and returns a formatted markdown table, for example: md"""
|Input | Output | Comments |
|:-------------|:----------|:--------------------------|
|τ = 2π | $(τ) | The real circle constant! |
|ω = τ .* f | $(ω) | Angular frequency |
""" Such that the cell renders like:
Some more thought would need to go into number formatting, but this all seems very possible ...at least with my limited understanding of macros. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've found myself staring at walls of single-line cells, wondering where all my screen space went.
It'd be great to have a tabular cell style to make these sorts of one-liner parameter entries more compact and easy to read - something like an n-row, three-column table where each row is its own Pluto cell, and the columns are | input | output | comments |, like
Beta Was this translation helpful? Give feedback.
All reactions