DonJayamanne / vscodeJupyter

Jupyter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.jupyter
MIT License
334 stars 34 forks source link

IPython Display of Inline Images is not Affected by Size-Related Properties #53

Open ryanpfeeley opened 7 years ago

ryanpfeeley commented 7 years ago

Environment data

VS Code version: 1.12.2 Jupyter Extension version: 1.1.3 OS and version: Windows 10 Pro 64-bit

Actual behavior

Image displayed in the "Results" area of VSCode is unaffected by the width, height, or retina properties of the image object.

Expected behavior

Size of rendered image would be affected by these properties. Please note that I'm just getting started with Jupyter, so it is very possible that my expectations are flawed.

Steps to reproduce:

from IPython.display import Image, display
im = Image(filename = "myImage.jpg", width=200)
print(im)
print(im.width)
display(im)