Skip to content

Make saving images from Interactive window easier #1534

@oerpli

Description

@oerpli

Environment data

  • VS Code version: 1.33
  • Extension version (available under the Extensions sidebar): 2019.3.6558
  • OS and version: Win 10, 1703
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: matplotlib maybe

Expected behaviour

Saving multiple images from the interactive tab by dragging to Windows explorer/Finder is easy and comfortable

Actual behaviour

Saving multiple images is rather bothersome, as each file has the same name (download.png) and has to be renamed before saving another file.

Steps to reproduce:

  1. Plot multiple images
  2. Drag them into the same folder

More Details

Maybe related to: #1470

Currently it is possible to drag the image from the interactive tab to e.g. Windows Explorer to save it as download.png. Saving multiple images in this way is a bit painful, as it is necessary to rename them every time.

Is it possible to give each image in the interactive tab an alt-tag which would then be used as image name? If yes, I would suggest something that uses a ISO Time/Date (: would have to be handled somehow) and e.g. the "cell name". Timestamp should be the time when the cell is executed.

ScriptName.py:
#%% [CellName] Comment
plot1() # ScriptName-CellName-1-TS
plot2() # ScriptName-CellName-2-TS

#%% Comment
plot3() # ScriptName-#Cell-1-TS
plot4() # ScriptName-#Cell-2-TS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions