Skip to content

Reusing rendered Pandas dataframe as table in article? #1067

Closed Answered by rowanc1
pschumm asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @pschumm. You can add a :kind: table to the figure, and it will work. In addition to that you can wrap it in a table directive and use an embed or ![](#pd-table) inside of the body of the table directive. These will give you the source and the table caption.

:::{table} This is my table
:label: tbl:here
![](#pd-table)
:::

:::{figure} #pd-table
:label: tbl:there
:kind: table
This is my table caption
:::

Over in jupyter, the cell needs to be labeled with #| label: pd-table.

Hope that helps!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pschumm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants