Jupyter notebook TIPS(色変更、入力補完、自動生成)

1.入力補完

1. anaconda の jupyter でnbextensionsを使います。 

  • コマンド:

conda install -y -c conda-forge jupyter_contrib_nbextensions


2.nbextensionsのHinterland にチェックを入れます。

2.目次自動生成

1.anaconda の jupyter でnbextensionsを使います。(上記と同じ)


2.nbextensionsのTable of Contents (2)にチェックを入れます。


3.色変更

0.css編集で変更する方法。


0.1 customフォルダを作成。

C:\Users\(あなたの名前とか)\.jupyter\custom

0.2 cssを作成します。

windowsならコマンドプロンプトでni custom.cssで作成。

0.3 cssの中身

gitbubからcssをコピペしたり、自分でお好みのcssを作成したり。様々な方法があります。


1.jupyterthemesを使って変えます。


1.1 jupyterthemesをインストールします(必要あればupgradeします)。

pip install jupyterthemes


1.2 jtコマンドでテーマ変更。

jt -t onedork -f inconsolata -T -N

利用可能なテーマ詳細:jupyter themes




(色んなセッティングしたら、jupyter notebookがこのようになりました。)

0コメント

  • 1000 / 1000