1
3

More than 1 year has passed since last update.

JupyterNotebookの見た目をカッコよくしよう

Last updated at Posted at 2022-12-17

概要

JupyterNotebookの背景色,セルサイズ,フォントサイズ,....
とりあえずいろんな設定したいけどどうすんのーー!!!

jupyterthemesで設定をいじる

jupyterthemesとやらでJupyterNotebookの設定をいじれるらしい.
とりあえずpipでjupyterthemesをインストール.

$ pip install jupyterthemes

あとはこんな感じで設定して,(おすすめの設定)

$ jt -t monokai -T -N -cellw 95% -tfs 11 -lineh 160 -ofs 10

ノートブックを開けば,

$ jupyter-notebook

atcorder.png
template.png
セルの横幅も広くていい感じ!

今回使ったjtのオプション

引数 オプション
-t インストールするテーマ
-T ツールバー表示
-N 名前とロゴ表示
-cellw セルの横幅
-tfs セルのフォントサイズ
-lineh 行の高さ
-ofs 出力のフォントサイズ

いろんなオプションがあるので,上記以外のものが気になる人は見てみてください.
jupyterthemesの使い方

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