Skip to content
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

Graph with error message with jupyter #131544

Closed
Jacques2101 opened this issue Aug 24, 2021 · 1 comment
Closed

Graph with error message with jupyter #131544

Jacques2101 opened this issue Aug 24, 2021 · 1 comment
Assignees

Comments

@Jacques2101
Copy link

Hi, I am new on vscode and I tried something very simple with Jupyter extension.
My code is:

# Pandas
import pandas as pd

# Plotting
import matplotlib.pyplot as plt
import seaborn as sns
plt.style.use('seaborn')

%matplotlib inline
plt.rcParams['figure.dpi'] = 150
df = pd.DataFrame([2, 5, 67, 2, 3, 5, 23, 124])
df.hist();

but the line %matplotlib inlineseems to produce an error message although I get my graph
The error message is:
Expected expression Pylance

Second the graph is not nice and I do not understand how to improve it in particular the white espace in the graph that seems strange from my point of view.

Thx for your help.

Capture d’écran 2021-08-24 à 19 40 51

@roblourens
Copy link
Member

We are working on fixing these error messages, see microsoft/vscode-python#17058

I don't think we can do much about the extra white space. This area is managed by the matplotlib renderer and isn't themed like vscode. cc @DonJayamanne

@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants