-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converting ipython to pdf via Latex cut off contents #524
Comments
This is a problem with how If you just want this to fix for one case, then I would recommend converting to LaTeX and manually changing the If you want it to wrap, and be reproducible without manual intervention, you'll need to either write a custom template. The simplest solution would be to rewrite the There are ways to make this nicer – so that you don't lose the nice prompt formatting in other cases – using custom tags, but try the above solution first, then I can walk you through the improved solution. For now I'm closing this as having been addressed. |
Idea for a shell script
On Linux, call the script with the filename of the .ipynb file without the extension. |
In the same ballpark as @hoogenm's comment above, I find that adding
post-conversion. |
I tried solutions with |
@vors thanks so much! it worked 👍 |
If you want line breaks in your PDF, you could try using https://nbsphinx.readthedocs.io/, which breaks lines by default. Apart from line breaks, you can also control many details like margins, font sizes etc., see https://www.sphinx-doc.org/en/master/latex.html. |
@mgeier oh that looks promising, thank you for sharing! |
@vors the link you shared worked perfectly! Thank you. |
This should be fully fixed in nbconvert 5.5.0 by #992 |
Although i only change wrap_text , it works! this link is really useful,thanks. |
Some long statements are cut off. Also, I use statsmodels's logistic regression and the pdf cannot show all the summary() of the training result. How can I change the property(eg. margin) of the pdf? I have no idea about Latex.
The text was updated successfully, but these errors were encountered: