-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] add toggle to diable "expand image" feature and restore the pervious behaviors #3307
Comments
Btw, please please tell me there is a way to disable this "expand image" function. |
Not sure what you mean by 'expand image'. Did you mean the little icon that appears on top of the plot? Do you have a repro for generating the image? It works with the plots I've created. |
Oh 'expand image' means the button. Didn't realize that's what the tooltip said. Why do you want to disable the 'expand image' button? Is it getting in the way somehow? |
This might be mac only issue. Could be our dpi conversion isn't working correctly. |
The 'expand image' button should only appear when you mouse over the plot. |
Sorry, there is no easy way to disable this feature. We reworked how Jupyter returns images. Didn't even realize you could drag the images to your desktop. That's pretty cool. There is a way to disable it in your code/interactive window though. Run this line of code after your start the interactive window:
We'll look into adding an official setting. |
Sorry that last comment was too quick. Should have said format = 'png' |
@rchiodo Thx a lot. The code works. |
The png image saving works for me on Windows. Need to test on mac/linux to see if it's a dpi issue or not. |
And you're running on mac, right? |
No... I'm on windows 10. I think the environment data shows that right? |
Note to self: |
@StevenLi-DS I just submitted a fix for this. Our insider's build will have the fix in about an hour. There's a new setting: 'enablePlotViewer' that turns on/off the expand image button. With it off you should be able to drag pngs out of the interactive window again. I also fixed the png scaling when exporting to png if you continue to use the plot viewer. |
I just saw a new release. Have this 'enablePlotViewer' implemented? |
No that was a release for some specific bug fixes. It doesn't have the enablePlotViewer bits in it. That's only in the insider's build. You can see what was fixed in the changelog for the release branch: Looks like a fix for a/b testing. |
@rchiodo Hi, man. Do you have an approximation time for this feature implementation? Meanwhile, could you guys consider reopen this issue microsoft/vscode-python#6473? |
This has already been implemented in the insider's build. We generally add the 'sign-off' label when something moves to insider's but hasn't shipped in the general release yet. Issues with the 'data-science parking lot' or 'parking-lot' are in limbo. We close issues when the ship in the general release. I also reopened the other issue. |
Environment data
Version: 1.35.1 (user setup)
Commit: c7d83e57cd18f18026a8162d042843bda1bcf21f
Date: 2019-06-12T14:30:02.622Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763
Python Extension: 2019.6.22090
Issue:
The new release includes a new feature to interact with the plots:
This implement has caused the following issues:
users can no longer drag the plots to wherever they want. In fact, it seems like many users save their plots this way:
https://github.com/microsoft/vscode-python/issues/5201
https://github.com/microsoft/vscode-python/issues/4132
When saving a plot as a .png file in the new Plots windows, the image got cut off for some reasons.
This new "expand image" feature completely change the behavior of the vs code. I understand this feature might be convenient for some users, but I'd like to use code to explicitly set the dpi and save plots.
Please consider adding a toggle for it or at least disable the double-click and restore the "drag to desktop" behavior.
The text was updated successfully, but these errors were encountered: