[IPython-User] Set default properties of Matplotlib in IPython notebook?

Matthias BUSSONNIER bussonniermatthias@gmail....
Thu Feb 7 06:17:56 CST 2013


Le 7 févr. 2013 à 11:04, Jose Guzman a écrit :

> Dear IPython users,
> 
> is it possible to set the default Matploblit properties for the IPython notebook with independence of the $HOME/.matplotlib/matplotlibrc file?
> 
> I always start my notebooks with 
> >> matplotlib.rcParams.update({'font.size':20})
> 
> and wondered whether is possible to set this (and other properties) by default

You can execute any code at startup by following this : 

http://ipython.org/ipython-doc/stable/config/overview.html#startup-files

or use 
http://ipython.org/ipython-doc/dev/config/ipython.html#application-level-configuration
(exec_files)

set it in  ipython_notebook_config.py if you want to execute it only for notebook.

It should help.

-- 
Matthias


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20130207/bbb2fa52/attachment.html 


More information about the IPython-User mailing list