In jupyterlab I can copy a chart by shift + right-clicking the chart image, which brings up the browser menu. In VS Code, it shift + right click does nothing. Some charting libraries seems to render a save button in VS Code, so I guess there is some logic to detect whether the output is an image. However, other libraries produce both and image and and interactive chart, and it seems like the VS logic fail for those.
E.g. the matplotlib code from this example seem to work fine as three small button show up to the right when I hover the image (copy, open in new tab, save to disk). However this altair example does not show any buttons when hovered over and there seems to be no way for me to copy the image other than taking a screenshot. In jupyterlab (and directly in the browser), I can shift + right click and copy the altair chart as well.
In jupyterlab I can copy a chart by shift + right-clicking the chart image, which brings up the browser menu. In VS Code, it shift + right click does nothing. Some charting libraries seems to render a save button in VS Code, so I guess there is some logic to detect whether the output is an image. However, other libraries produce both and image and and interactive chart, and it seems like the VS logic fail for those.
E.g. the matplotlib code from this example seem to work fine as three small button show up to the right when I hover the image (copy, open in new tab, save to disk). However this altair example does not show any buttons when hovered over and there seems to be no way for me to copy the image other than taking a screenshot. In jupyterlab (and directly in the browser), I can shift + right click and copy the altair chart as well.
Maybe related to https://github.com/microsoft/vscode-jupyter/issues/13453 and https://github.com/microsoft/vscode/pull/190768