Upgrade to Pro — share decks privately, control downloads, hide ads and more …

IPython: How a notebook is changing science

IPython: How a notebook is changing science

Talk on the PyCon Sweden 2015 in Stockholm by Juan Luis Cano

More Decks by Juan Luis Cano Rodríguez

Other Decks in Technology

Transcript

  1. IPython: How a notebook is changing science Python as a

    real alternative to MATLAB, Mathematica and other commercial software Juan Luis Cano Rodríguez — @Pybonacci Stockholm — 2015-05-12
  2. Who am I? • Almost aeronautical engineer • Self-taught Python

    programmer • Pythonic life: – Pybonacci blog about scientific Python – Chair of the Python Spain Association – Python developer at Airbus Operations – Final Master project: fluid-structure interaction analysis with Python (FEM + SPH) – Personal endeavour: interplanetary trajectory analysis with Python
  3. Russell's teapot “If I were to suggest that between the

    Earth and Mars there is a china teapot revolving about the Sun in an elliptical orbit, nobody would be able to disprove my assertion provided I were careful to add that the teapot is too small to be revealed even by our most powerful telescopes.
  4. What is this IPython notebook? • Interactive Python interpreter in

    the browser • Open format combining executable code, text and multimedia • Inspired in Mathematica • Based on the Python programming language Demo! http://www.nature.com/news/ipython-interactive-demo-7.21492
  5. Teaching tool • Book: Bayesian Methods for Hackers • Lorena

    Barba courses: • AeroPython* • 12 steps to Navier Stokes • Practical Numerical Methods with Python • Harvard CS109 Data Science *Not to be confused with our AeroPython ;)
  6. Some myths → There's no support → Won't be free

    forever → Free software has bugs
  7. Some myths → There's no support Enthought, Continuum Analytics →

    Won't be free forever → Free software has bugs
  8. Some myths → There's no support Enthought, Continuum Analytics →

    Won't be free forever Free software belongs to the community → Free software has bugs
  9. Some myths → There's no support Enthought, Continuum Analytics →

    Won't be free forever Free software belongs to the community → Free software has bugs Naturally.
  10. Project Jupyter • Separation of the language-agnostic components – Jupyter:

    protocol, format, multi-user server – IPython: interactive Python console, Jupyter kernel • Jupyter kernels = Languages which can be used from the notebook (33 and counting) • Surprises are coming...
  11. Some recent events May 7th, 2015: • GitHub + Jupyter

    notebooks = <3 https://github.com/blog/1995-github-jupyter-notebooks-3 • Embracing Jupyter Notebooks at O'Reilly https://beta.oreilly.com/ideas/jupyter-at-oreilly ...that scalated quickly!
  12. Further resources • Official Python tutorial on python.org • Langtangen

    “A primer on Scientific Programming with Python” • “Curso de Python para científicos e Ingenieros” on YouTube (in Spanish) • AeroPython #0 with installation and getting started instructions (in Spanish) • Software Carpentry, programming for scientists and engineers • MOOCs at Coursera, EdX...