LoginSignup
2
5

More than 5 years have passed since last update.

jupyter notebookのTipsまとめ(警告表示,カラー変更)

Last updated at Posted at 2019-01-13

jupyterのTipsまとめ

jupyterの便利なコマンドを忘れないように書き留めていきます.随時更新します.

警告非表示

import warnings
warnings.filterwarnings("ignore")

jupyterのカラー変更

Jupyter themeを使用する方法

pip install jupyterthemes
jt -l

Available Themes:
chesterish
grade3
gruvboxd
gruvboxl
monokai
oceans16
onedork
solarizedd
solarizedl
でこんな感じででるから,好きなの選ぶ

jt -t monokai

これがいい感じ
スクリーンショット 2019-01-13 22.38.59.png

しかし,

このままmatplotlibでplotするとlabel見えない問題

スクリーンショット 2019-01-18 15.09.37.png

対策1:facecolorを設定する

plt.figure(facecolor='w')
plt.bar(b,a)

スクリーンショット 2019-01-18 15.14.08.png

対策2:plt.stelyを設定

plt.style.use('dark_background')
plt.bar(b,a)

スクリーンショット 2019-01-18 15.17.19.png

2
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
5