-
Notifications
You must be signed in to change notification settings - Fork 767
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
matplotlib: Pylance does'nt show autocomplete of modules in matplotlib #73
Comments
Thanks; we are missing the option APIs; will add them in next release. |
As for pyplot, the documentation does not list This might be exported by way of it importing something else and a variable existing, but I'm not sure that it's actually a part of pyplot's declared API (which is why I didn't add it to the stub). I think we'll have to check other projects to see if this is a common usage. |
It is good to add api about pandas and matplotlib ,This can enhance the programming experience of data science. |
An update- found now that the below option works in the Jupyter Notebook Option when I first run the notebook in VS Code , but does not show in when writing .py file. It would be good to have it in the normal py editor option as well
|
Correct; the notebook is working with the live code, but these stubs haven't been updated/fixed yet to include these methods (and that's what's used in non-live code, i.e. statically analyzed files). I'm still not super convinced that this undocumented value should be exposed, in any case, but the stubs need to be updated in general. |
Add one thing. |
This issue has been fixed in version 2021.3.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202130-3-march-2021 |
Issue Type: Bug
import matplotlib.pyplot as plt
plt.style.use("seaborn-darkgrid") <----- when we plt. --- the style option does not show up in the autocomplete option.
import pandas as pd
pd.set_option <----- the set_option does not show up when type pd. in autocomplete
Extension version: 2020.6.1
VS Code version: Code 1.46.1 (cd9ea6488829f560dc949a8b2fb789f3cdc05f5d, 2020-06-17T21:13:20.174Z)
OS version: Windows_NT x64 10.0.17134
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: