質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
JupyterLab

JupyterLabは、Jupyter notebookの後継の対話型開発環境(IDE)です。データの可視化がインタラクティブで、プラグイン作成により新しいコンポーネントの追加および既存のコンポーネントも統合可能。サーバに閉じているため、データ分析に向いています。

Q&A

1回答

1943閲覧

Jupyterlab でデータフレームのテーブルのフォントをデフォルトで修正するには?

taboopython

総合スコア40

JupyterLab

JupyterLabは、Jupyter notebookの後継の対話型開発環境(IDE)です。データの可視化がインタラクティブで、プラグイン作成により新しいコンポーネントの追加および既存のコンポーネントも統合可能。サーバに閉じているため、データ分析に向いています。

0グッド

0クリップ

投稿2021/09/28 12:31

編集2021/09/28 13:03

こんにちは。
jupyter-lab で、pandasを使っているのですが、
添付の図のように、アウトプットしたdataframeテーブルの文字が小さいため、フォントサイズをセル個別ではなく、デフォルトで変更したいのですが、どこを直せば良いかわかりません。

Settings- Advanced Settings Editor では下のコードのように設定しているのですが、ここでは変更できませんでした。
その他、どこでサイズ調整できるかご存知の方がいれば教えて頂ければ幸いです。

なお、セル個別では
.style.set_table_attributes('style="font-size: 22px"')
や、CSSで調整する方法は見つかったのですが、デフォルトで全ノートに適用させる方法があればご教示いただきたいです。

発生している問題・エラーメッセージ

イメージ説明

該当のソースコード

Settings- Advanced Settings Editor- Notebook { "codeCellConfig": { "autoClosingBrackets": false, "cursorBlinkRate": 530, "fontFamily": null, "fontSize": 25, "lineHeight": null, "lineNumbers": false, "lineWrap": "off", "matchBrackets": true, "readOnly": false, "insertSpaces": true, "tabSize": 25, "wordWrapColumn": 95, "rulers": [], "codeFolding": false, "lineWiseCopyCut": true }, // Default cell type // The default type (markdown, code, or raw) for new cells "defaultCell": "code", // Shut down kernel // Whether to shut down or not the kernel when closing a notebook. "kernelShutdown": false, // Markdown Cell Configuration // The configuration for all markdown cells. "markdownCellConfig": { "autoClosingBrackets": false, "cursorBlinkRate": 530, "fontFamily": null, "fontSize": 15, "lineHeight": null, "lineNumbers": false, "lineWrap": "on", "matchBrackets": false, "readOnly": false, "insertSpaces": true, "tabSize": 25, "wordWrapColumn": 95, "rulers": [], "codeFolding": false, "lineWiseCopyCut": true }, // The maximum number of output cells to to be rendered in the output area. Set to 0 to have the complete display. // Defines the maximum number of output cells to to to be rendered in the output area for cells with many outputs. The output area will have a head and a tail, and the outputs between will be trimmed and not displayed unless the user clicks on the information message. "maxNumberOutputs": 50, // Number of cells to render directly // Define the number of cells to render directly when virtual notebook intersection observer is available "numberCellsToRenderDirectly": 30, // Observed bottom margin // Defines the observed bottom margin for the virtual notebook, set a positive number of pixels to render cells below the visible view "observedBottomMargin": "1000px", // Observed top margin // Defines the observed top margin for the virtual notebook, set a positive number of pixels to render cells above the visible view "observedTopMargin": "1000px", // Raw Cell Configuration // The configuration for all raw cells. "rawCellConfig": { "autoClosingBrackets": false, "cursorBlinkRate": 530, "fontFamily": null, "fontSize": 15, "lineHeight": null, "lineNumbers": false, "lineWrap": "on", "matchBrackets": false, "readOnly": false, "insertSpaces": true, "tabSize": 25, "wordWrapColumn": 95, "rulers": [], "codeFolding": false, "lineWiseCopyCut": true }, // Recording timing // Should timing data be recorded in cell metadata "recordTiming": false, // Render cell on browser idle time // Defines if the placeholder cells should be rendered when the browser is idle "renderCellOnIdle": true, // Scroll past last cell // Whether to be able to scroll so the last cell is at the top of the panel "scrollPastEnd": true } ``` ### 補足情報(FW/ツールのバージョンなど) jupyterlab 3.1.12 Python 3.8.10 OS ubuntu20.04

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

pandasで作成されたテーブル内の文字フォントをでかくするに書かれているように、CSSの設定を行いましょう。

投稿2021/09/28 12:53

ppaul

総合スコア24666

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

taboopython

2021/09/28 13:01

ありがとうございます。 このサイトは私も確認しておりセル個別に調整する方法はわかるのですが、デフォルトで全ノートに適用させる方法はございますでしょうか?
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問