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

EDA plot() not showing properly in VScode #952

Open
ldavidr3 opened this issue Dec 20, 2022 · 2 comments
Open

EDA plot() not showing properly in VScode #952

ldavidr3 opened this issue Dec 20, 2022 · 2 comments
Assignees
Labels
type: bug Something isn't working

Comments

@ldavidr3
Copy link

Describe the bug
EDA plot() not showing properly in VScode

To Reproduce
Steps to reproduce the behavior:

  1. Open new Jupyter notebook
  2. Import from dataprep.eda import plot, plot_correlation, create_report, plot_missing
  3. Try .head() method on any test dataset so it shows first DF rows as output
  4. Next cell call .plot() method from dataprep
  5. Near finishing execution, the method adds padding to the left of all Output cells and it's impossible to scroll to the right to see the full output

Or:

import numpy as np
import pandas as pd
import datetime
from datetime import date
import matplotlib
import seaborn as sns
import matplotlib.pyplot as plt
import plotly.graph_objects as go
from sklearn.preprocessing import StandardScaler, normalize
from sklearn import metrics
from sklearn.mixture import GaussianMixture
from mlxtend.frequent_patterns import apriori
from mlxtend.frequent_patterns import association_rules
import warnings
warnings.filterwarnings('ignore')
data=pd.read_csv('marketing_campaign.csv',header=0,sep=';')

from dataprep.eda import plot, plot_correlation, create_report, plot_missing
plot(data)

Expected behavior
I expected to be shown the output normally in the screen

Screenshots

Images:
image_2022-12-20_105546368

image_2022-12-20_105618462

image_2022-12-20_105702601

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: None
  • Platform VSCode
  • Platform Version 1.74.1
  • Python Version 3.10.9
  • Dataprep Version 0.4.4

Additional context

@ldavidr3 ldavidr3 added the type: bug Something isn't working label Dec 20, 2022
@dovahcrow
Copy link
Member

Nice catch! The visualization is implemented/tested for jupyter notebook at the very beginning. With the popularity of VSCode increasing, I think supporting it should be the next step. Will circle around the issue with the team to see what exactly happens.

@yimin-demo
Copy link

I have the same issue when I run it in VSCode. Could I know which plot package you use to generate plots? Probably I can try to search for if the issue is from the plot function itself. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants