1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Jupyter Notebook の横幅をブラウザいっぱいにする

Posted at

Jupyter Notebook の横幅をブラウザいっぱいにする小技です。

~/.jupyter/custom/custom.css

に下記を加えます。

@media (min-width: 768px) {
  .container {
    width: 98%;
  }
}
@media (min-width: 992px) {
  .container {
    width: 98%;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 98%;
  }
}

このようにすると、.../site-packages/notebook/static/style/style.min.css に書かれているピクセル指定の幅設定を上書きできるようです。

変更後に、Jupyter の server を再起動する必要がある点に注意です。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?