html - 使用 Markdown 调整jupyter笔记本中的图像大小

标签 html image jupyter-notebook markdown jupyter

我想在 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/

相关文章:

javascript - 需要博主的下一篇文章按钮

javascript - iCheck 复选框作为单选按钮

ruby-on-rails - CSS 或 jQuery on rails/How to "fill frame"with an image?

带有 matlibplot 的 python 笔记本单元格高度

javascript - 页面加载器在本地主机上工作正常..但在服务器上永远不会淡出?

html - 闪过闪 - 问题

html - 缩放时仅从右侧剪切图像

css - svg 矩形图像不显示在 firefox 上

python - Pandas 中情节上的额外条形图?

amazon-web-services - 如何在 AWS EMR notebook 上安装 python 库?