3 回答

TA貢獻(xiàn)1773條經(jīng)驗(yàn) 獲得超3個(gè)贊
如果您不想更改默認(rèn)設(shè)置,而只想更改正在使用的當(dāng)前筆記本的寬度,則可以在單元格中輸入以下內(nèi)容:
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))

TA貢獻(xiàn)1757條經(jīng)驗(yàn) 獲得超8個(gè)贊
為了使它與jupyter(版本4.0.6)一起使用,我創(chuàng)建了以下內(nèi)容~/.jupyter/custom/custom.css:
/* Make the notebook cells take almost all available width */
.container {
width: 99% !important;
}
/* Prevent the edit cell highlight box from getting clipped;
* important so that it also works when cell is in edit mode*/
div.cell.selected {
border-left-width: 1px !important;
}
添加回答
舉報(bào)