Every time I launch iPython Notebook, the first command I run is
%matplotlib inline
Is there some way to change my config file so that when I launch iPython, it is automatically in this mode?
Every time I launch iPython Notebook, the first command I run is
Is there some way to change my config file so that when I launch iPython, it is automatically in this mode? |
|||
The configuration wayIPython has profiles for configuration, located at
Add the inline option for matplotlib to
matplotlib vs. pylabUsage of It introduces all sorts of gunk into your namespace that you just don't need.
The small price of typing out your imports explicitly should be completely overcome by the fact that you now have reproducible code. |
|||||||||
|
I think what you want might be to run the following from the command line:
If you don't like typing it at the cmd line every time then you could create an alias to do it for you. |
|||||||||
|
In your
and
and uncomment them. Then, change |
|||
|
ipython --matplotlib
is better – tcaswell Jan 17 at 21:38