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

Jupyterでダッシュボードを簡単に作る!

Cddce6ee5ec153c8dade038f6f75ff04?s=47 yujikawa
November 22, 2019

 Jupyterでダッシュボードを簡単に作る!

Voilaとholoviewsを使って簡単にダッシュボードを作る内容です。

Cddce6ee5ec153c8dade038f6f75ff04?s=128

yujikawa

November 22, 2019
Tweet

Transcript

  1. +VQZUFSͰ෼ੳμογϡϘʔυΛ؆୯ʹ࡞Δʂ ՄࢹԽϥΠϒϥϦ͕͍ͬͺ͍͋ͬͯ๻͸΋͏ർΕͨΑ Ώ͔͡Θ!ZVKJLBXB@QZ

  2. ࣗݾ঺հ :VKJ,BXBLBNJʢΏ͔͡Θʣ ZVKJLBXBQZ ZVKJLBXB@QZ

  3. ՄࢹԽϥΠϒϥϦ͸ଟ͍ NBUQMPUMJC TFBCPSO CPLFI ͜ͷଞʹ΋͍ͬͺ͍͋Δʜ CHQMPU QMPUMZ BMUBJS

  4. Θ͕··ͳ๻ NBUQMPUMJC΋͍͍͚Ͳ TFBCPSOͷํ͕͔͍͍͚ͬ͜Ͳ CPLFIͷํ͕ର࿩ࣜͰྑͦ͞͏ͩ͠ ͋ΕʁQMPUMZ΋ྑ͛͞͡ΌΜ Ͱ΋શ෦ॻ͖ํ֮͑Δͷ໘౗ʜ ͍ͭͰʹμογϡϘʔυ΋ָʹ ΋͸΍+VQZUFS͚ͩͰղܾ͍ͨ͠

  5. ർΕ͍ͯΔͦΜͳ͋ͳͨʹ

  6. http://holoviews.org/#

  7. NBUQMPUMJCɺCPLFIɺQMPUMZΛϥοϓͨ͠ՄࢹԽϥΠϒϥϦ ಉ͡ॻ͖ํͰͦΕͧΕͷϥΠϒϥϦͰͷՄࢹԽ͕ՄೳʹͳΔ import holoviews as hv hv.Scatter(df, kdims='INDUS', vdims='NOX') #ࢄ෍ਤ

    NBUQMPUMJC CPLFI QMPUMZ
  8. )PMP7JFXTͷΠϯετʔϧ QJQJOTUBMMIPMPWJFXT<SFDPNNFOEFE> ؆୯ʂʂ

  9. https://voila.readthedocs.io/en/stable/

  10. ಡΈํ͸ʮϰΥΞϥʯ+VQZUFS/PUFCPPLͷ಺༰Λͦͷ·· %BTICPBSEʹͰ͖ΔϥΠϒϥϦʔ IUUQTHJUIVCDPN WPJMBEBTICPBSETWPJMB  +VQZUFS/PUFCPPLͰಈ͘΋ͷͰ͋Ε͹%BTICPBSEʹͰ͖ Δͱ͍͏͜ͱͰ3ͳͲͰ΋͍͚Δ͸ͣ ৄࡉͳϒϩάɿIUUQTCMPHKVQZUFSPSHBOE WPJM$"GBDBB αϯϓϧɿIUUQTWPJMBHBMMFSZPSHTFSWJDFTHBMMFSZ

  11. 7PJMBͷΠϯετʔϧ QJQJOTUBMMWPJMB ˙+VQZUFS-BCͰϓϨϏϡʔද͍ࣔͨ͠৔߹ͷ֦ுػೳ KVQZUFSMBCFYUFOTJPOJOTUBMM!KVQZUFSWPJMBKVQZUFSMBC QSFWJFX

  12. %&.0 ඦฉ͸Ұݟʹ͔ͣ͠ ࣮ࡍʹͲΜͳײ͡ͳͷ͔ݟͯΈ·͠ΐ͏

  13. )PMPWJFXT IPMPWJFXTΛΠϯϙʔτ͠·͢ FYUFOTJPOؔ਺Ͱಈ͔͍ͨ͠ϥΠϒϥϦΛࢦఆͰ͖·͢

  14. )PMPWJFXT άϥϑಉ࢜Λ଍͠ࢉ͢Δͱෳ਺ͷάϥϑΛฒ΂Δ͜ͱ͕Ͱ͖·͢

  15. )PMPWJFXT άϥϑಉ࢜Λֻ͚ࢉ͢Δͱෳ਺ͷάϥϑΛॏͶΔ͜ͱ͕Ͱ͖·͢

  16. WPJMB +VQZUFS/PUFCPPLͰग़ྗͨ݁͠Ռ͕ͦͷ··μογϡϘʔυͱͯ͠ग़ྗͰ͖Δ

  17. WPJMB +VQZUFS4FSWFSʹ֦ுͰ͖ΔͨΊɺ63-ʹWPJMBͱೖΕΔͱμογϡϘʔυͷҰ ཡ͕ݟΒΕΔ

  18. ·ͱΊ )PMP7JFXTΛ࢖͏͜ͱͰɺෳ਺ͷՄࢹԽϥΠϒϥϦʔΛ؆ ୯ʹ࢖͑ΔΑ͏ʹͳΔɻෳ਺ͷϥΠϒϥϦͷॻ͖ํΛ֮͑ͳ ͯ͘ࡁΉͷͰؾ࣋ͪతʹָʹͳΔɻ ͞Βʹ7PJMBΛ࢖͏͜ͱͰ+VQZUFSOPUFCPPLͰॻ͍ͨ΋ͷ͕ ͦͷ··μογϡϘʔυʹ࢖͑ΔͷͰɺͱͬͯ΋ָͪΜ

  19. ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠