LoginSignup
0
1

More than 5 years have passed since last update.

[MacOS]Jupyterテーマ変更&アウトプット表示が見切れる問題対処方法

Last updated at Posted at 2018-11-30

はじめに

以下のOSに対してのJupyterNotebookのテーマ変更方法および、
アウトプットの表示が見切れてしまう問題への対処方法となります。

OS:Mac OS Mojave

1.Jupyter Notebookのテーマを変更

参考
Jupyterのレイアウトを変える方法

1-1. Terminalでコマンドにより好きなテーマに変更

jt -t onedork -fs 95 -tfs 11 -nfs 115 -cellw 95% -T -N

2.隠しフォルダの表示

2-1. /Users/{ユーザー名} のディレクトリに移動

2-2. FinderでCommandキー + Shiftキー + ドット(.)を押下

3.CSSファイルを編集

3-1. ~/.jupyter/custom/custom.cssに移動

3-2. CSSファイルの以下の箇所を編集

div.output_subarea {
 overflow-x: auto;
 padding: 1.8em !important;  /* もともとコレ padding: 0.8em !important;*/
 -webkit-box-flex: 1;
 -moz-box-flex: 1;
 box-flex: 1;
 flex: 1;
}

参考
Jupyter notebookのthemeを変えたら出力セルが見切れる件

0
1
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
0
1