jupyter notebook 設定

extension install

conda install -y -c conda-forge jupyter_contrib_nbextensions
conda install isort
conda install autopep8

nbexのタブ

  • autopep8
  • codefolding
  • codefolding in editor
  • collapsible headings
  • executetime
  • highlight selected words
  • iso formatter
  • notify
  • ruler in editor
  • toggle all line numbers

見た目

conda install -c conda-forge jupyterthemes
jt -t chesterish -T -N -f hack -fs 10 -cellw 95%

そのあとcustom.cssのケツの方にrun cell button削除追加

.code_cell .run_this_cell {
    display: none;
}

matplotlib

ノートブック内で

%matplotlib inline
from matplotlib.font_manager import FontProperties
fp = FontProperties(fname=r'C:\WINDOWS\Fonts\meiryob.ttc', size=16)