¤ ·ͣ׳ΕΑ͏J ¤ ϊʔτϒοΫҰཡը໘ʹ͍ͭͯ n New͔Β։͘/࡞͢Δ n υϥοά&υϩοϓͰΞοϓϩʔυͰ͖Δ n ্ͷλϒʹ͍ͭͯ n Files λϒ: ϊʔτϒοΫͱϑΥϧμҰཡ n Runningλϒ: ࣮ߦதͷϊʔτϒοΫɾλʔϛφϧҰཡ ¤ Ұཡը໘͔Β։͚Δ/࡞Ͱ͖ΔϞϊͷछྨ n ϊʔτϒοΫ (֤ݴޠ) n ςΩετϑΝΠϧ n ϑΥϧμ n λʔϛφϧ
¤ ϊʔτϒοΫը໘ʹ͍ͭͯ n File > New͔Β৽ن࡞Ͱ͖Δ n File > Make a CopyͰίϐʔͰ͖Δ n File > RevertΑΓݹ͍όʔδϣϯ(ࣗಈอଘ)ʹͤΔ n File > Download asͰΤΫεϙʔτͰ͖Δ n IPython Notebook n Python n HTML n Markdown n reST n PDF
¤ ηϧͷ࡞ n +Ͱ৽نηϧΛͭ͘ΕΔ n ηϧલޙͰ͖Δ (↑/↓Ϙλϯ) n InsertͰηϧΛૠೖͰ͖Δ ¤ ηϧͷ࣮ߦ n Shin + Enter ͰηϧΛ࣮ߦ n CellϝχϡʔΑΓҰׅ࣮ߦͰ͖Δ n Run All, Run Above, Run Below n Cellϝχϡʔ͔ΒCell typeΛม͑ΒΕΔ n Code, Markdown, Heading(ݟग़͠) n Cellϝχϡʔ͔ΒOutputͷදࣔ/ඇදࣔΛtoggleͰ͖Δ
n $ jupyter notebook --generate-config Ͱ࡞Δ n ~/.jupyter/ ʹอଘ͞ΕΔ n jupyter_notebook_config.py: n ύεϫʔυͷ༗ແɺHTTPSͰ͏ূ໌ॻͳͲ ¤ IPython (Χʔωϧ)ͷઃఆ n $ ipython profile create Ͱ࡞ n ~/.ipython/profile_XXX/ ʹอଘ͞ΕΔ n ipython_config.py: n IPythonͷઃఆ (λʔϛφϧ/ϊʔτϒοΫڞ௨) n ىಈ࣌ʹ࣮ߦ͢ΔίʔυɺgreedyͳิΛ༗ޮʹ͢Δ͔ͳͲ n ipython_kernel_config.py n IPython Notebookͷઃఆ (ϊʔτϒοΫͷΈద༻) n ىಈ࣌ʹ࣮ߦ͢Δίʔυɺάϥϑඳࣸʹ͍ͪΔόοΫΤϯυ ͳͲɻ
ipython_kernel_config.py ʹ͍ͭͯ n άϥϑඳࣸͷઃఆ߲ҎԼͷΑ͏ʹ͢Δ n c.InlineBackend.figure_formats = set([‘rePna’]) n RePnaղ૾ͷPNGΛੜ͢Δ߹rePna n Png: ී௨ͷղ૾ͷPNG n svgpdfͳͲ͑Δ n c.InlineBackend.rc = {} n ͜ͷߦ͕ͳ͍ͱmatplotlibrcͷઃఆͷ͍͔͕ͭ͘ແࢹ͞ΕΔ (IPython෦σϑΥϧτʹ͓͖͔͑ΒΕΔ) ¤ Matplotlibͷઃఆ n hxp://matplotlib.org/users/customizing.html ͔Β matplotlibrcΛμϯϩʔυ͢Δ n ~/.config/matplotlib/matplotlibrc (Linux) n ~/.matplotlib/matplotlibrc (LinuxҎ֎) n σϑΥϧτͷαΠζɺελΠϧɺTeXΛ༗ޮʹ͢Δ͔ɺͳͲ
ग़ྗΛRePnaͳPNGɺ(E)PSɺPDFɺSVGʹͰ͖Δ n Configʹઃఆ͢Δ͔ɺsave(ϑΝΠϧ໊)ͰมߋՄ ¤ mpld3Λ͏ͱɺग़ྗ͕D3.jsΛ͏Α͏ʹͳΔ n mpld3.display() Λ࠷ޙʹݺͿ͚ͩ ¤ prexyplotlibΛ͏ͱඳ͕͍͍ࣸײ͡ʹ៉ྷʹͳΔ n σϑΥϧτͷςʔϚͪΐͬͱݹ͍͘͞ͷͰ
~/.jupyter n JupyterͷઃఆϓϩϑΝΠϧ͕֨ೲ͞ΕΔ n IPython Χʔωϧͷઃఆ͜͜ʹແ͍ (4.0ʙ) ¤ ~/.ipython n IPythonͷઃఆ͕֨ೲ͞ΕΔ ¤ ~/.matplotlib n Matplotlibrc͕֨ೲ͞ΕΔ ¨ InstallaPon folder structure (Ұ෦) ¤ /usr/local/lib/pythonX.Y/site-packages n (Mac/Library/Python/2.7/site-packages) ¤ ~/.local/lib/python2.7/site-packages n (Mac~/Library/Python/2.7/lib/python/site-packages)