Difference between revisions of "User:Gregor/IPython"
Line 30: | Line 30: | ||
** http://i.imgur.com/nqJo2Jn.png?1 | ** http://i.imgur.com/nqJo2Jn.png?1 | ||
** (how to make it work?, https://github.com/ipython/ipython/issues/6476 ?) | ** (how to make it work?, https://github.com/ipython/ipython/issues/6476 ?) | ||
+ | |||
+ | === Animations with qt4 viewer === | ||
+ | |||
+ | sudo zypper install python3-matplotlib-qt4 | ||
+ | |||
+ | %matplotlib qt | ||
+ | |||
+ | %load http://matplotlib.org/examples/animation/animate_decay.py | ||
+ | |||
+ | see http://matplotlib.org/examples/animation/animate_decay.html | ||
+ | |||
+ | => A viewer opens showing an animation |
Revision as of 09:04, 11 October 2015
IPython installation on openSUSE 13.2
sudo zypper install python3-IPython
Sometimes the following is missing:
sudo pip3 install jinja2
or
sudo pip3 install --user jinja2
Start jupyter notebook
ipython3 notebook
Basic plotting
- Enable matplotlib mode
- %matplotlib inline
- Shift + Enter
- Making a simple plot
- Loading Matplotlib demos with %load
- interactive plot with nbagg (%matplotlib notebook)
- http://i.imgur.com/nqJo2Jn.png?1
- (how to make it work?, https://github.com/ipython/ipython/issues/6476 ?)
Animations with qt4 viewer
sudo zypper install python3-matplotlib-qt4
%matplotlib qt
%load http://matplotlib.org/examples/animation/animate_decay.py
see http://matplotlib.org/examples/animation/animate_decay.html
=> A viewer opens showing an animation
This page was last edited on 11 October 2015, at 09:04. Content is available under Creative Commons License SA 4.0 unless otherwise noted.