我想在 Jupyter notebook 中添加图像,并且我想要特定的高度和宽度。 当我尝试使用
添加图像时
![](img.png)
代码正在添加完整的图像,但根据图像尺寸,我无法控制它。 我尝试使用 ![](img.png =200x100) 但是图像没有出现。
有人知道添加具有预先指定尺寸的图像的方法吗?
最佳答案
如果您通过像这样将图像插入 Markdown 来附加图像:
![Screenshot.png](attachment:Screenshot.png)
这些附件
链接不起作用:
<img src="attachment:Screenshot.png" width="500"/>
这样做。这确实有效。 只需添加 div 括号:
<div>
<img src="attachment:Screenshot.png" width="500"/>
</div>
希望对您有所帮助!
PS 我正在使用 jupyter_core-4.4.0
和 jupyter notebook。
关于html - 使用 Markdown 调整jupyter笔记本中的图像大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41598916/