User:Gregor/IPython: Difference between revisions

From KDE Wiki Sandbox
 
(5 intermediate revisions by the same user not shown)
Line 12: Line 12:


== Start jupyter notebook ==
== Start jupyter notebook ==
http://jupyter.org/


  ipython3 notebook
  ipython3 notebook
Line 28: 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.
==== Double pendulum with scipy ====
zypper se scipy
sudo zypper install python3-scipy
%load http://matplotlib.org/examples/animation/double_pendulum_animated.py
==== All examples ====
http://matplotlib.org/examples/
* http://matplotlib.org/examples/mplot3d/lorenz_attractor.html
* http://matplotlib.org/examples/widgets/buttons.html

Latest revision as of 09:15, 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

http://jupyter.org/

ipython3 notebook

Basic plotting

See http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/IPython%20Kernel/Plotting%20in%20the%20Notebook.ipynb

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.

Double pendulum with scipy

zypper se scipy
sudo zypper install python3-scipy
%load http://matplotlib.org/examples/animation/double_pendulum_animated.py

All examples

http://matplotlib.org/examples/