File tree Expand file tree Collapse file tree
src/ydata_profiling/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121jobs :
2222 prepare :
2323 name : Get Current version
24- runs-on : ubuntu-22 .04
24+ runs-on : ubuntu-24 .04
2525
2626 outputs :
2727 version : ${{ steps.version.outputs.value }}
4646
4747 publish-docs :
4848 name : Publish Docs
49- runs-on : ubuntu-22 .04
49+ runs-on : ubuntu-24 .04
5050
5151 needs :
5252 - prepare
6666 - name : Setup Python
6767 uses : actions/setup-python@v5
6868 with :
69- python-version : " 3.11 "
69+ python-version : " 3.13 "
7070
7171 - name : Cache pip dependencies
7272 id : cache
Original file line number Diff line number Diff line change 99jobs :
1010 commitlint :
1111 name : Lint commit message
12- runs-on : ubuntu-22 .04
12+ runs-on : ubuntu-24 .04
1313
1414 steps :
1515 - uses : actions/checkout@v4
2121 lint :
2222 if : github.actor != 'renovate[bot]'
2323 name : Lint source code
24- runs-on : ubuntu-22 .04
24+ runs-on : ubuntu-24 .04
2525
2626 steps :
2727 - uses : actions/checkout@v4
4040 - name : Set up Python 3.11
4141 uses : actions/setup-python@v5
4242 with :
43- python-version : ' 3.11 '
43+ python-version : ' 3.13 '
4444
4545 - uses : actions/cache@v4
4646 name : Cache pip dependencies
@@ -85,15 +85,15 @@ jobs:
8585
8686 validate-docs :
8787 name : Validate Docs
88- runs-on : ubuntu-22 .04
88+ runs-on : ubuntu-24 .04
8989
9090 steps :
9191 - uses : actions/checkout@v4
9292
9393 - name : Setup Python 3.11
9494 uses : actions/setup-python@v5
9595 with :
96- python-version : ' 3.11 '
96+ python-version : ' 3.13 '
9797
9898 - name : Cache pip dependencies
9999 id : cache
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2222 - name : Setup Python 3.11
2323 uses : actions/setup-python@v5
2424 with :
25- python-version : ' 3.11 '
25+ python-version : ' 3.13 '
2626
2727 - uses : actions/cache@v4
2828 name : Cache pip dependencies
7474 runs-on : ubuntu-22.04
7575
7676 needs : package
77-
77+ permissions :
78+ id-token : write
79+ contents : read
7880 steps :
7981 - uses : actions/download-artifact@v4
8082 with :
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ jobs:
122122 - run : codecov -F py${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.pandas }}-${{ matrix.numpy }}
123123
124124 test_spark :
125- runs-on : ubuntu-22 .04
125+ runs-on : ubuntu-24 .04
126126 continue-on-error : false
127127 strategy :
128128 matrix :
Original file line number Diff line number Diff line change 22 References and information regarding ydata-profiling and ydata-sdk
33"""
44import importlib .util
5+ import os
56
67_displayed_banner = False
8+ SUPPRESS_BANNER = bool (os .getenv ("YDATA_SUPPRESS_BANNER" , "" ))
79
810link = "https://ydata.ai/register"
911title = "Upgrade to ydata-sdk"
@@ -15,10 +17,8 @@ def in_jupyter_notebook() -> bool:
1517 if importlib .util .find_spec ("IPython" ) is not None :
1618 from IPython import get_ipython
1719
18- isiPython = not get_ipython () is None
19- else :
20- isiPython = False
21- return isiPython
20+ return get_ipython () is not None
21+ return False
2222
2323
2424class DisplayInfo :
@@ -61,8 +61,8 @@ def display_message(self) -> None:
6161
6262def display_banner () -> None :
6363 global _displayed_banner
64- banner_info = DisplayInfo (title = title , info_text = info_text )
6564
66- if not _displayed_banner :
65+ if not _displayed_banner and not SUPPRESS_BANNER :
66+ banner_info = DisplayInfo (title = title , info_text = info_text )
6767 banner_info .display_message ()
6868 _displayed_banner = True
You can’t perform that action at this time.
0 commit comments