News for hackers. Stuff that matters.
Re:Jupyter Notebook 7 by kumarvvr on Thursday July 27, 2023 @09:58AM (#36893601)
I am new to the Jupyter ecosystem. Can anyone point me to resources that allow me to generate PDF reports from Jupyter Notebooks?

I want to build a template notebook, that has internal code to fetch data from a database, based on command line arguments and then run the notebook and then strip all the code parts and generate a beautiful PDF document.

Re:Jupyter Notebook 7 by esalman on Thursday July 27, 2023 @10:14AM (#36893886)
Jupyter nbconvert should do it for you- https://nbconvert.readthedocs.io/en/latest/
Re:Jupyter Notebook 7 by pgryko on Thursday July 27, 2023 @10:04AM (#36893719)
Re:Jupyter Notebook 7 by thecfrog on Thursday July 27, 2023 @01:45PM (#36897407)
You want Quarto. https://quarto.org/
Re:Jupyter Notebook 7 by drBonkers on Thursday July 27, 2023 @02:15PM (#36897906)
Can I use Quarto in a cell-notebook style? So far it seems like I can only get it compiled into a PDF, which feels different from Jupyter.

I could be completely wrong here, just looking for insight.

Re:Jupyter Notebook 7 by thecfrog on Thursday July 27, 2023 @02:50PM (#36898363)
Quarto is used to convert from code (script or notebook) to formatted output. You can annotate a Jupiter notebook and have Quarto compile that into a PDF. If you are looking for something that changes the look of the notebook itself I don’t think that exists. But you can still include some interactivity when exporting to html.