ipydrawio
ipydrawio copied to clipboard
插入的图片是变形的
你好,我发现通过插件在jupyter-lab中安装的ipydrawio,插入本地图片,图片是变形,不知道为什么会出现这个问题。
As machine translated:
Hello, I found that the ipydrawio installed in jupyter-lab through the plug-in, insert the local picture, the picture is deformed, I don't know why this problem occurs.
A screenshot might help, however links to local images will almost certainly break. I've found the following approach works fairly well:
- open jupyterlab
- open a diagram
- open a Python notebook
-
display the file using a plain-old
display
in IPythonimport IPython.display IPython.display.Image('path-to-image.png')
- drag the image output from the notebook into the diagram
- this ensures the fully-embedded file gets stored in the diagram
- drag the image output from the notebook into the diagram
-