Skip to content

Commit

Permalink
fix: remove ipywidgets import
Browse files Browse the repository at this point in the history
  • Loading branch information
aquemy committed Dec 23, 2022
1 parent ddd69fd commit 07292e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pandas_profiling/profile_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import numpy as np
import pandas as pd
from ipywidgets.widgets.widget_box import VBox
from tqdm.auto import tqdm
from typeguard import typechecked
from visions import VisionsTypeset
Expand Down Expand Up @@ -234,7 +233,7 @@ def json(self) -> str:
return self._json

@property
def widgets(self) -> VBox:
def widgets(self) -> Any:
if (
isinstance(self.description_set["table"]["n"], list)
and len(self.description_set["table"]["n"]) > 1
Expand Down Expand Up @@ -357,7 +356,7 @@ def _render_html(self) -> str:
pbar.update()
return html

def _render_widgets(self) -> VBox:
def _render_widgets(self) -> Any:
from pandas_profiling.report.presentation.flavours import WidgetReport

report = self.report
Expand Down

0 comments on commit 07292e4

Please sign in to comment.