LoginSignup
7
6

More than 5 years have passed since last update.

jupyterの横幅調整をcss変更で実行

Posted at

jupyter つかっててデフォルトの画面だと幅せまくね?
とおもったので、横幅調整を調べた。
css変更できるとな。

~/.jupyter/custom/custom.css

にて幅を指定する。
!important を記載してCSSのセレクタ順位を無視しないと設定が効かないとな。


#notebook-container {
    width: 90% !important;
}

師匠に!importantは滅多事ない限りつかうな。と言われたが今がその滅多ないことであることを祈ります。
あとは使ってるノートブックに以下をぶち込むのもありとな。
こっちは未確認なので明日試してみよ〜


from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))

参考URL

https://stackoverflow.com/questions/21971449/how-do-i-increase-the-cell-width-of-the-jupyter-ipython-notebook-in-my-browser
https://qiita.com/goripon4416/items/a876f8122181b0734a40

7
6
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
7
6