如何在 ipython notebook 中嵌入网站

Lot*_*arn 11 python url ipython jupyter-notebook

我想让我的笔记本在笔记本中打开一个网站以及我在网站中执行/单击的任何操作,它的工作方式就像在新选项卡中打开一样,但仅保留在 ipython 笔记本单元格中。我知道在新选项卡中打开网站的 selenium 包,或者有其他方法到 0 但每次,我都需要离开笔记本并转到新窗口/选项卡。那么我如何制作我的 ipython 笔记本,使其在单元格中打开网站,无论我做什么,它都保留在笔记本中。谢谢

NRR*_*NRR 17

你可以试试这个:

%%html
<iframe src="https://playground.tensorflow.org" width="1200" height="1000"></iframe>
Run Code Online (Sandbox Code Playgroud)