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

Say something

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s