1

I am trying to write a report for my project in LaTex. I am able to put code onto my LaTex Document, but I wanted to know if it is possible to import my output cell which is a table onto my LaTex document? If not, any other suggestions where I should not create my own table for every output.

Image

1

Since you are using pandas you can use dataset.to_latex(dataset.tex) This would give you a latex table. Also you can just get the whole jupyter notebook as LaTeX code and than take what ever you want from it. For this you could use jupyter nbconvert /path/jupyterscript.ipynb --to latex This would give you your table and the code you needed to generate the table.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.