ipython notebook + iruby - rubyconfar 2013

18
IPython Notebook + Ruby = IRuby RubyConf Argentina - 2013 martin sarsale @runixo http://www.properati.com.ar

Upload: runa

Post on 23-Jun-2015

956 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: IPython notebook + IRuby - RubyConfAR 2013

IPython Notebook+ Ruby = IRubyRubyConf Argentina - 2013

martin sarsale @runixo

http://www.properati.com.ar

Page 2: IPython notebook + IRuby - RubyConfAR 2013

Que es IPython Notebook

● un REPL○ read-eval-print loop. tipo irb o pry o

interactive_editor● … pero Web● Un kernel agnóstico (Python / Ruby /

Javascript)● Output “enriquecido” ( Texto / Gráficos /

Javascript)● Input: Codigo + Markdown

Page 3: IPython notebook + IRuby - RubyConfAR 2013

El porqué de esta charla

● Soluciona MIS problemas○ probablemente los suyos sean parecidos

● Una herramienta que se monta sobre “algo” conocido○ Curva de aprendizaje mínima - deliciosa

● Instalable / usable / explorable; *ya*

Page 4: IPython notebook + IRuby - RubyConfAR 2013

Que es IPython Notebook (II)

Page 5: IPython notebook + IRuby - RubyConfAR 2013

Celdas de código o markdown

Page 6: IPython notebook + IRuby - RubyConfAR 2013

Como funciona

Notebook Server

(Python)

Kernel Rubyeval()

IPython Notebook Web

(HTML/JS)

cliente servidor

Page 7: IPython notebook + IRuby - RubyConfAR 2013

Como funciona

Notebook Server

(Python)

Kernel Rubyeval()

IPython Notebook Web

(HTML/JS)

0MQ “1+1”

Websockets: “1+1”

2

2

cliente servidor

Page 8: IPython notebook + IRuby - RubyConfAR 2013

Para que sirve: mostrar código

Page 9: IPython notebook + IRuby - RubyConfAR 2013

Para que sirve: mostrar códigoEl output forma parte del notebook guardado!

Basta de demostraciones en vivo!

Page 10: IPython notebook + IRuby - RubyConfAR 2013

Para que sirve: enseñar / aprenderLearn Data Science (!!)

Open content for self-directed learning in data science

What● A collection of Data

Science Learning materials in the form of IPython Notebooks.

● Associated data sets.

Page 11: IPython notebook + IRuby - RubyConfAR 2013

Para que sirve: explorar datos

✉ Che… ¿Cuales son las inmobiliarias que tienen más propiedades?

Page 12: IPython notebook + IRuby - RubyConfAR 2013

Para que sirve: explorar datos

✉ Che… ¿Cuales son las inmobiliarias que tienen más propiedades?

Page 13: IPython notebook + IRuby - RubyConfAR 2013

✉ Che… ¿Cuales son las inmobiliarias que tienen más propiedades?

http://192.168.0.144:9999/227275d5-6447-493f-a245-343d127168f3

Top 10 Inmobiliarias por cantidad de avisos

Page 14: IPython notebook + IRuby - RubyConfAR 2013

Para que sirve: explorar datos

Page 15: IPython notebook + IRuby - RubyConfAR 2013

Para que sirve: explorar datos

Page 16: IPython notebook + IRuby - RubyConfAR 2013

Como lo usamos

● Server de IPython Notebook en la LAN● Que carga config/boot.rb

○ nuestra configuración (db, sphinx, redis)○ nuestras clases

● Un Notebook en vez de ‘un scriptcito de 5 líneas’

Page 17: IPython notebook + IRuby - RubyConfAR 2013

Como lo usan otros

● Damián Avila y sus slides○ bioquímico○ blog

● Javier Burroni y sus numeritos○ actuario○ blog

Page 18: IPython notebook + IRuby - RubyConfAR 2013

IPython Notebook+ Ruby = IRubyRubyConf Argentina - 2013

martin sarsale @runixo

http://www.properati.com.ar