Has anyone encountered the problem of trying to print an entire Jupyter Notebook where the last page was excluded?
I've tried downloading my .ipynb as a PDF but there's tons of stuff that get's truncated if my lines are too long horizontally. I can work around this with linebreaks but it's a bit annoying.
I've tried using Print Preview but doing so excludes the last page of content.
I've also tried converting my .ipynb file to HTML:
jupyter nbconvert --to html filename.ipynb
and then opening it in Google Chrome to print from there but experience the same problem as with a regular print preview.
Are there any suggestions out there?
Nevermind y'all, I found a solution. In case anyone is new to nbconvert, you can install it with anaconda as:
conda install nbconvert
Then after you're done with your Jupyter notebook and are ready to print, you can use your terminal to convert to a PDF:
Jupyter nbconvert --to pdf filename.ipynb
This will produce a PDF you can print normally! I hope this helps someone.
Related
When I use puppeteer locally and produce a pdf, stock settings and headless, this character
🌐
is drawn correctly on the resulting pdf. When I try to run the same within Docker, the character renders incorrectly. This happens with many unicode chars within Docker, they render incorrectly or not at all.
I've read the posts about this, and it seems like it's a font problem? I have puppeteer running within docker, using node:16 as a base. Is it just that my base image doesn't have enough fonts? I've tried installing chrome and the other suggestions from the puppeteer docker file and related posts, they don't work. Using puppeteer 18.0.2 on node:16.
If it's a font issue, does somebody know how to get fonts installed that will work and produce the characters generally found in the headed browsers? Or is it something else? Ok, just posting this in 2022 since many of the answers from the past are old and outdated. Thanks for any help.
Try using the official Docker image that pre-installs many fonts: https://github.com/puppeteer/puppeteer/blob/main/docker/Dockerfile#L11
Azure Data Studio. I love it. Wherever possible I am working in ADS instead of SSMS, gradually moving stand-alone SQL scripts to notebooks. Notebooks are so useful. Rich-text commenting of code using markdown, making a great way of documenting scripts.
But how to print it?
I loaded the notebook into notepad. It is a JSON file. So I am thinking maybe I can do some kind of XSLT transform. Seems that JSLT may be way to go. But there has to be a better way?
You can open the notebook (its a .ipynb file) just like any other Jupyter notebook in Jupyter lab and print from there. Works for me.
I have working .Rmd files that contain latex syntax (rendering correctly). However, when I render using the bookdown package, I have experienced that the latex output is incorrect.
I went to check in the source (aka https://bookdown.org/yihui/bookdown/markdown-syntax.html#math-expressions) and I see that the render is not correct there either!
I see similar behavior for bookdown's preview_chapter() rendering but not for Rmarkdown knit of a toy example. I see similar behavior changing web browser.
Is this something on my end? Are there updates I need to do?
It is not an issue on your end, but a server problem (the default MathJax CDN server in bookdown was down). I just changed the server, and the problem should be gone if you
devtools::install_github('rstudio/bookdown')
I can confirm that Yihui Xie's answer is helpful. I didn't have devtools installed in RStudio, so I used:
install.packages('devtools')
After this, I duly followed Yihui's recommendation and ran:
devtools::install_github('rstudio/bookdown')
After this, the problem was solved and maths were rendered correctly in the gitbook format.
I am using Jupyter Notebook via Anaconda and when I tried to download as pdf via LaTeX, I obtain the following error:
Is there a known way to resolve this error? I tried reinstalling but still obtained the same error. Also, I tried to look it up online but to the best of my knowledge, no one has yet to encounter the problem I have.
Looked at https://tex.stackexchange.com/questions/68041/miktex-cannot-find-the-file but I still can't seem to figure it out..
is there anybody out there, with experiences about how to do a gantt-diagram / chart using latex.
I tryed it for a lot of hours today, lastly it worked switching outpout from pdf to dvi.
Maybe someone can tell me what to include, besides pst-gantt, and the normal pstricks stuff.
It showed more than 100 errors for 4 Tasks.. after switching to dvi there was a big 0.
i am using the whole distribution mitex .. upgradet to the newest version. stupidly i have the error log not avaible on this computer. but it was always the same error. i was using pst-gantt, outload missing packages.. hm errors will follow tomorrow morning
Reading the pst-gantt README it looks like this depends on the pstricks package. I believe that the "ps" is for postscript and the functionality is implemented by generating DVI "special" commands; which means that you can't produce output pdf directly using pdflatex. You can get to PDF output, but you must go by way of DVI. Either source->DVI->PDF or even source->DVI->PS->PDF.
I came across this question when having trouble with pst-gantt and pdflatex. As others have pointed out you need to go via DVI, which honestly sucks if you have used pdflatex all the time.
So I did some search, and found this phantastic replacement written by Martin Krumm: http://www.martin-kumm.de/tex_gantt_package.php