Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to print in color with Jupyter notebook

Jupyter notebooks (using IPython) print in black and white by default.
By opening the developer's console, locating the relevant style file, and deleting various @media print styling options, I can print in colors.
However, this is rather tedious to do.

Is there a way to set up a global configuration to override the default?

Jupyter version: 4.0.6
IPython version: 4.0
like image 423
André Avatar asked Dec 11 '15 16:12

André


1 Answers

Looks like a patch just got accepted on this topic: https://github.com/jupyter/notebook/pull/3212.

It's apparently something of a hack because the offending code/template is pretty deep within a dependency. While it is being fixed by the dependency upstream, the newer version of the dependency is incompatible, so a more hack-ish patch is acceptable for now.

The fix just got accepted into the master branch of the source code, so it isn't yet available in a released version. If someone sees that it is, then this answer should be updated or a new answer submitted.

like image 165
flutefreak7 Avatar answered Oct 07 '22 03:10

flutefreak7