1
如何使用R做類似this的事?其實我想將Jupyter筆記本電腦寬度設置爲100%。在蟒蛇這個代碼完美的作品:R - 如何將HTML代碼嵌入到Jupyter筆記本輸出中?
from IPython.core.display import HTML, display
HTML("<style>.container { width: 100%; }</style>")
R是否有任何等價物?
謝謝!
如何使用R做類似this的事?其實我想將Jupyter筆記本電腦寬度設置爲100%。在蟒蛇這個代碼完美的作品:R - 如何將HTML代碼嵌入到Jupyter筆記本輸出中?
from IPython.core.display import HTML, display
HTML("<style>.container { width: 100%; }</style>")
R是否有任何等價物?
謝謝!
您可以使用display_html
函數來顯示R中的html代碼。,
IRdisplay::display_html('<iframe src="http://www.w3schools.com" width=1000, height=1000></iframe> ')
最後我編輯'/蟒蛇/庫/站點包/筆記本/靜態/風格/ style.min.css'總是 「強迫」 100%的寬度。我將'width:100%;'添加到'#notebook-container'。 – ragesz
看起來你用比R更好的方式解決了問題。謝謝你的提示。除了默認值之外,你可以創建Jupyter會讀取的自定義css文件。還有可能感興趣的筆記本擴展。 – Avi