Centering Plots in Jupyter Notebook

Like many other researchers, I use Jupyter notebooks on a daily basis for plotting figures and analysing data. For that reason, I care a lot about how things are rendered in my Jupyter environment that environment — figures and text.

Earlier today, while reading Ahmed BESBES blog, I discovered this handy CSS snippet that can center figures rendered in Jupyter notebook:

I’ve added this to my custom.css file, which hopefully I’ll share with you someday.

Advertisements