Jupyter(主にnotebook)のご紹介

B9dd885e3ef94ac5e0bcfdf4800ba703?s=47 tmaeda
June 13, 2015

 Jupyter(主にnotebook)のご紹介

SapporoR#4 での LT の発表資料です。

B9dd885e3ef94ac5e0bcfdf4800ba703?s=128

tmaeda

June 13, 2015
Tweet

Transcript

  1. 2015/06/13 SapporoR#4 Jupyter (ओʹnotebook) ͷ͝঺հ @tmaeda ͑ʹ͠ςοΫ

  2. @tmaeda ✤ ʢגʣ͑ʹ͠ςοΫͷϓϩάϥϚ! ✤ ओʹडୗ։ൃͳͲ! ✤ ࠷ۙ࡞ͬͨ΋ͷ(VoiceText WebAPI)! ✤ R΋౷ܭ΋Jupyter΋ݟΑ͏ݟ·ͶͰ࢖͍ͬͯΔఔ౓Ͱ

    ͢! ✤ SapporoR͸#1ҎདྷͷࢀՃͰ͢
  3. VoiceText WebAPI(w/HOYAαʔϏε༷)

  4. 2015/06/13 SapporoR#4 Jupyter (ओʹnotebook) ͷ͝঺հ @tmaeda ͑ʹ͠ςοΫ

  5. Jupyterͱ͸ ✤ https://jupyter.org/! ✤ ΋ͱ΋ͱ͸IPythonͱ͍͏Python༻ͷΠϯλϥΫςΟ ϒ؀ڥͰͨ͠ɻ! ✤ notebookɺϑΝΠϧϑΥʔϚοτɺϓϩτίϧͳͲ͸ PythonҎ֎ͷݴޠͰ΋࢖͑ΔͷͰ͸ʁ! ✤

    Julia, Python, R→JuPyteR
  6. Jupyter notebook ͱ͸ ✤ Webϒϥ΢β্Ͱಈ͘ΠϯλϥΫςΟϒίʔσΟϯά ؀ڥʴMarkdownܗࣜʹΑΔυΩϡϝϯτهड़(TeX֦ ு෇͖)! ✤ Mathematica notebookʹΠϯεύΠΞ͞Εͯ࡞ͬͨΒ

    ͍͠ɻ( http://blog.fperez.org/2012/01/ipython- notebook-historical.html ) https://twitter.com/fperez_org
  7. Πϯετʔϧͱىಈ $ brew install libzmq3 czmq zmq! $ sudo pip

    install ipython pyzmq jinja2 tornado jsonschema! $ git clone https://github.com/armstrtw/rzmq.git --recursive! $ r! > install.packages(“devtools")! > install.packages('RCurl') ! > library(devtools) ! > install_local('./rzmq') ! > install_github("IRkernel/IRdisplay") ! > install_github(“IRkernel/IRkernel")! > IRkernel::installspec()! > ͦͷଞඞཁʹԠͯ͡ϥΠϒϥϦ͍Ζ͍Ζ…! $ ipython notebook
  8. Πϯετʔϧͱىಈ $ brew install libzmq3 czmq zmq! $ sudo pip

    install ipython pyzmq jinja2 tornado jsonschema! $ git clone https://github.com/armstrtw/rzmq.git --recursive! $ r! > install.packages(“devtools")! > install.packages('RCurl') ! > library(devtools) ! > install_local('./rzmq') ! > install_github("IRkernel/IRdisplay") ! > install_github(“IRkernel/IRkernel")! > IRkernel::installspec()! > ͦͷଞඞཁʹԠͯ͡ϥΠϒϥϦ͍Ζ͍Ζ…! $ ipython notebook ͱඇৗʹ໘౗ͳͷͰ….
  9. ͓ࢼ͠͸ try.jupyter.org

  10. ৽نϑΝΠϧΛ࡞ͬͯ ༨ஊͰ͕͢ɺ! RҎ֎ʹ΋! ͍ΖΜͳݴޠ͕! ࢖͑·͢ɻ

  11. ܭࢉ΍άϥϑ͸΋ͪΖΜ

  12. ߦྻσʔλ΋දܗࣜͰݟ΍͘͢දࣔ

  13. MarkdownͰυΩϡϝϯτ͕ॻ͚ͯ

  14. TeXͰ਺ࣜ΋ॻ͚·͢

  15. .ipynbܗࣜͷϑΝΠϧ ✤ JSONΈ͍ͨͳܗࣜɻ! ✤ άϥϑͳͲ͸ը૾ͱͯ͠ຒΊࠐ·Ε͍ͯΔɻ! ✤ http://nbviewer.ipython.org/ ͰදࣔͰ͖ͨΓ! ✤ github

    Ͱ΋දࣔͰ͖·͢ɻ
  16. σϞ ࠓ೔ͷ@kazutanઌੜ ͷϫʔΫγϣοϓ΋ ͍͍࣮ͩͨߦͰ͖·͠ ͨ

  17. Ϗʔϧͷྫͱ͔

  18. ggplotͷྫͱ͔

  19. ࣗ෼Ͱߏஙͨ͠JupyterʹύοέʔδΛೖΕΕ͹ ࠓ೔ͷdplyrͷྫͳΜ͔΋࣮ߦͰ͖·͢ɻ

  20. ׆༻ͷ͔ͨ͠ ✤ ௐࠪɾݚڀͷࢼߦࡨޡʹ! ✤ ݚڀ੒Ռͷެ։ʹ! ✤ νϡʔτϦΞϧ΍ڭҭʹ

  21. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ