nbconvert format/frame cells' output

0

I've managed to write a script that automatically converts my notebook to a PDF via command line. It is quite nice, but I have a problem with it's looks.

enter image description here

As you can see, I have my cell put in a frame, with a nice background and colored. The problem is with it's output. Well, it doesn't look so nice I would say. To compile this I use simply: ipython nbconvert --to pdf notebook.ipynb --template article.

Is there a way to somehow format this output? Maybe I could put it in a frame , so I can see where does it end, if there's another cell below it, or something like this? When I edit this notebook in my browser, the output is colored:

enter image description here

P.S Do any of you guys know why when I am compiling this with article template, I get those cells nicely in a frame, but then I use a report template I get them colored, but not in a frame?

dabljues

Posted 2020-02-25T23:50:08.693

Reputation: 127

Question was closed 2020-02-26T00:24:01.323

No answers