Closed bdatko closed 5 years ago
I figured it out by reading the docs more carefully =P
code cells (output): only include if the following tags are present ...
- “text” for plain text
Therefore, I just added text along with the code tag inside the metadata of the cell which I wanted both the code, and output to be displayed in my pdf. Shown below is the metadata I added.
{
"ipub": {
"code": {
"format": {},
"asfloat": true,
"caption": "my_caption",
"label": "code:my_label",
"widefigure": false
},
"text": {
"format": {}
}
},
"trusted": true
}
For clarity, I was trying to convert my Jupyter notebook into a pdf using nbpublish -pdf my_notebook.ipyn
What the title says. I have a working example of generating the code for a cell, but I also want the output of the cell as well. How do I accomplish this?