question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] add toggle to diable "expand image" feature and restore the pervious behaviors

See original GitHub 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: image

This implement has caused the following issues:

  1. 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

  2. When saving a plot as a .png file in the new Plots windows, the image got cut off for some reasons.

import matplotlib.pyplot as plt
import numpy as np
import geopandas as gpd

# load dataset
path = gpd.datasets.get_path('naturalearth_lowres')
gdf = gpd.read_file(path)
# generate a random column
gdf['random_col'] = np.random.normal(100, 10, len(gdf))

# plot quantiles map
fig, ax = plt.subplots(figsize=(10, 10))
gdf.plot(column='random_col', scheme='quantiles', k=5, cmap='Blues',
         legend=True, legend_kwds=dict(loc=6), ax=ax)

image

  1. the DPI of the plots in the Plots windows seem very high, but the png image file saved via “export to different formats” has a much lower DPI.

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Jul 23, 2019

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. Issues with the ‘backlog’ label are stuff we’re working on for the next release.

We close issues when the ship in the general release.

I also reopened the other issue.

1reaction
rchiodocommented, Jul 10, 2019

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: https://github.com/microsoft/vscode-python/blob/release/CHANGELOG.md

Looks like a fix for a/b testing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] add toggle to diable "expand image" feature ...
Please consider adding a toggle for it or at least disable the double-click and restore the "drag to desktop" behavior.
Read more >
Feature flags - GitLab Docs
GitLab uses Unleash, a feature toggle service. By enabling or disabling a flag in GitLab, your application can determine which features to enable...
Read more >
Feature Flags—What Are Those? Uses, Benefits & Best ...
Feature flags are a software development concept that allow you to enable or disable a feature without modifying the source code or requiring...
Read more >
Behavior changes: Apps targeting Android 12
Like earlier releases, Android 12 includes behavior changes that may affect your app. The following behavior changes apply exclusively to apps that are ......
Read more >
Snagit Preferences - TechSmith
Automatically increase the size of an image when pasting or dragging objects outside of the current image. Note: On Mac this option is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found