
    Q/Ph                         d Z ddlZddlZda e ej        dd                    ZdZdZ	dZ
d	efd
Z G d d          ZddZdS )zH
    References and information regarding ydata-profiling and ydata-sdk
    NFYDATA_SUPPRESS_BANNER https://ydata.ai/registerzUpgrade to ydata-sdkzImprove your data and profiling with ydata-sdk, featuring data quality scoring, redundancy detection, outlier identification, text validation, and synthetic data generation.returnc                  h    t           j                            d          ddlm}   |             duS dS )z6Check if the code is running inside a Jupyter NotebookIPythonNr   get_ipythonF)	importlibutil	find_specr   r
   r	   s    a/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/ydata_profiling/utils/information.pyin_jupyter_notebookr      s@    ~	**6''''''{}}D((5    c                   .    e Zd Z	 d	dededefdZd
dZdS )DisplayInfor   title	info_textlinkc                 0    || _         || _        || _        d S )N)r   r   r   )selfr   r   r   s       r   __init__zDisplayInfo.__init__   s     
	"r   r   Nc                     t                      r9ddlm}m} d| j         d| j         d| j         d} | ||                     dS d| j         dd	z   | j         z   d	z   d
| j         z   }t          |           dS )zS
        Display an HTML message in case the user is in a Jupyter Notebook
        r   )HTMLdisplayz1
            <div>
                <ins><a href="z">z3</a></ins>
                <p>
                    z5
                </p>
            </div>
            z[1;34mz[0m
zRegister at N)r   IPython.displayr   r   r   r   r   print)r   r   r   infos       r   display_messagezDisplayInfo.display_message#   s        	55555555#y ,0J  ^	  D GDDJJ 1TZ000^%&  -,,	-  $KKKKKr   )r   r   N)__name__
__module____qualname__strr   r     r   r   r   r      sb        
 0	# ## # 	# # # #     r   r   c                      t           s@t          s;t          t          t          t
                    } |                                  da d S d S d S )N)r   r   r   T)_displayed_bannerSUPPRESS_BANNERr   r   r   r   r    )banner_infos    r   display_bannerr+   >   sY      !_ !!NNN##%%% ! ! ! !r   r!   )__doc__importlib.utilr   osr(   boolgetenvr)   r   r   r   r   r   r+   r&   r   r   <module>r1      s         				 $yry!8"==>>" |	T    # # # # # # # #L! ! ! ! ! !r   