A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ydataai/ydata-profiling/commit/f593bb7bde8866a06e2a5332c29dfb5c042a42c9 below:

Update display import (#1709) · ydataai/ydata-profiling@f593bb7 · GitHub

File tree Expand file treeCollapse file tree 8 files changed

+19

-12

lines changed

Filter options

Expand file treeCollapse file tree 8 files changed

+19

-12

lines changed Original file line number Diff line number Diff line change

@@ -509,7 +509,7 @@ def to_notebook_iframe(self) -> None:

509 509

Notes:

510 510

This constructions solves problems with conflicting stylesheets and navigation links.

511 511

"""

512 -

from IPython.core.display import display

512 +

from IPython.display import display

513 513 514 514

from ydata_profiling.report.presentation.flavours.widget.notebook import (

515 515

get_notebook_iframe,

@@ -532,7 +532,7 @@ def to_widgets(self) -> None:

532 532

except ModuleNotFoundError:

533 533

pass

534 534 535 -

from IPython.core.display import display

535 +

from IPython.display import display

536 536 537 537

display(self.widgets)

538 538 Original file line number Diff line number Diff line change

@@ -1,4 +1,4 @@

1 -

from IPython.core.display import display

1 +

from IPython.display import display

2 2

from ipywidgets import Output, widgets

3 3 4 4

from ydata_profiling.report.presentation.core.correlation_table import CorrelationTable

Original file line number Diff line number Diff line change

@@ -1,4 +1,4 @@

1 -

from IPython.core.display import display

1 +

from IPython.display import display

2 2

from ipywidgets import Output, widgets

3 3 4 4

from ydata_profiling.report.presentation.core.duplicate import Duplicate

Original file line number Diff line number Diff line change

@@ -5,7 +5,7 @@

5 5

from typing import TYPE_CHECKING, Union

6 6 7 7

if TYPE_CHECKING:

8 -

from IPython.core.display import HTML

8 +

from IPython.display import HTML

9 9

from IPython.lib.display import IFrame

10 10 11 11

from ydata_profiling import ProfileReport

@@ -22,7 +22,7 @@ def get_notebook_iframe_srcdoc(config: Settings, profile: ProfileReport) -> "HTM

22 22

Returns:

23 23

IPython HTML object.

24 24

"""

25 -

from IPython.core.display import HTML

25 +

from IPython.display import HTML

26 26 27 27

width = config.notebook.iframe.width

28 28

height = config.notebook.iframe.height

Original file line number Diff line number Diff line change

@@ -1,4 +1,4 @@

1 -

from IPython.core.display import display

1 +

from IPython.display import display

2 2

from ipywidgets import Output, widgets

3 3 4 4

from ydata_profiling.report.presentation.core.sample import Sample

Original file line number Diff line number Diff line change

@@ -3,6 +3,6 @@

3 3 4 4

def full_width() -> None:

5 5

"""Resize the notebook to use it's full width"""

6 -

from IPython.core.display import HTML, display

6 +

from IPython.display import HTML, display

7 7 8 8

display(HTML("<style>.container { width:100% !important; }</style>"))

Original file line number Diff line number Diff line change

@@ -60,6 +60,13 @@

60 60

"df = pd.concat([df, duplicates_to_add], ignore_index=True)"

61 61

]

62 62

},

63 +

{

64 +

"cell_type": "code",

65 +

"execution_count": null,

66 +

"metadata": {},

67 +

"outputs": [],

68 +

"source": []

69 +

},

63 70

{

64 71

"cell_type": "code",

65 72

"execution_count": null,

@@ -77,7 +84,7 @@

77 84

" display(pr)\n",

78 85

"\n",

79 86

"assert len(out.outputs) == 2\n",

80 -

"assert out.outputs[0].data[\"text/plain\"] == \"<IPython.core.display.HTML object>\"\n",

87 +

"assert out.outputs[0].data[\"text/plain\"] == \"<IPython.display.HTML object>\"\n",

81 88

"assert out.outputs[1].data[\"text/plain\"] == \"\""

82 89

]

83 90

},

@@ -129,7 +136,7 @@

129 136

" display(pfr)\n",

130 137

"\n",

131 138

"assert len(out.outputs) == 2\n",

132 -

"assert out.outputs[0].data[\"text/plain\"] == \"<IPython.core.display.HTML object>\"\n",

139 +

"assert out.outputs[0].data[\"text/plain\"] == \"<IPython.display.HTML object>\"\n",

133 140

"assert out.outputs[1].data[\"text/plain\"] == \"\""

134 141

]

135 142

}

Original file line number Diff line number Diff line change

@@ -93,7 +93,7 @@

93 93

"\n",

94 94

"# assert len(out.outputs) == 2\n",

95 95

"# assert out.outputs[0].data['text/plain'].startswith('Tab(children=(HTML(value=')\n",

96 -

"# assert out.outputs[1].data['text/plain'] == '<IPython.core.display.HTML object>'\n",

96 +

"# assert out.outputs[1].data['text/plain'] == '<IPython.display.HTML object>'\n",

97 97

"# assert 'ydata-profiling' in out.outputs[1].data['text/html']"

98 98

]

99 99

},

@@ -108,7 +108,7 @@

108 108

" profile.to_notebook_iframe()\n",

109 109

"\n",

110 110

"assert len(out.outputs) == 1\n",

111 -

"assert out.outputs[0].data[\"text/plain\"] == \"<IPython.core.display.HTML object>\""

111 +

"assert out.outputs[0].data[\"text/plain\"] == \"<IPython.display.HTML object>\""

112 112

]

113 113

}

114 114

],

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4