msticpy/nbtools/azure_ml_tools.py
def check_mp_ver(min_msticpy_ver: Union[str, Tuple], extras: Optional[List[str]]):
    """
    Check and optionally update the current version of msticpy.

    Parameters
    ----------
    min_msticpy_ver : Tuple[int, int]
        Minimum MSTICPy version
    extras : Optional[List[str]], optional
        A list of extras required for MSTICPy

    Raises
    ------
    ImportError
        If MSTICPy version is insufficient and we need to upgrade

    """
    mp_min_pkg_ver = _get_pkg_version(min_msticpy_ver)

    _disp_html("Checking msticpy version...<br>")

    inst_version = _get_pkg_version(__version__)
    if inst_version < mp_min_pkg_ver:
        _disp_html(
            MISSING_PKG_ERR.format(
                package="msticpy",
                inst_ver=inst_version,
                req_ver=mp_min_pkg_ver,
            )
        )
        mp_pkg_spec = f"msticpy[{','.join(extras)}]" if extras else "msticpy"
        mp_pkg_spec = f"{mp_pkg_spec}>={min_msticpy_ver}"

        _disp_html(
            f"Please run the following command to upgrade MSTICPy<br>"
            f"<pre>!{mp_pkg_spec}</pre><br>"
        )
        raise ImportError(
            "Unsupported version of MSTICPy installed",
            f"Installed version: {inst_version}",
            f"Required version: {mp_min_pkg_ver}",
        )

    _disp_html(f"Info: msticpy version {mp_min_pkg_ver} OK<br>")

    Check and optionally update the current version of msticpy.

    Parameters
    ----------
    min_msticpy_ver : Tuple[int, int]
        Minimum MSTICPy version
    extras : Optional[List[str]], optional
        A list of extras required for MSTICPy

    Raises
    ------
    ImportError
        If MSTICPy version is insufficient and we need to upgrade

    
Check and optionally update the current version of msticpy.
Parameters

min_msticpy_ver : Tuple[int, int]
Minimum MSTICPy version
extras : Optional[List[str]], optional
A list of extras required for MSTICPy

Raises

ImportError
If MSTICPy version is insufficient and we need to upgrade
Check and optionally update the current version of msticpy . Parameters min_msticpy_ver : Tuple [ int int ] Minimum MSTICPy version extras : Optional [ List [ str ]] optional A list of extras required for MSTICPy Raises ImportError If MSTICPy version is insufficient and we need to upgrade
def check_mp_ver(min_msticpy_ver: Union[str, Tuple], extras: Optional[List[str]]):
    mp_min_pkg_ver = _get_pkg_version(min_msticpy_ver)
    _disp_html("Checking msticpy version...<br>")
    inst_version = _get_pkg_version(__version__)
    if inst_version < mp_min_pkg_ver:
        _disp_html(
            MISSING_PKG_ERR.format(
                package="msticpy",
                inst_ver=inst_version,
                req_ver=mp_min_pkg_ver,
            )
        )
        mp_pkg_spec = f"msticpy[{','.join(extras)}]" if extras else "msticpy"
        mp_pkg_spec = f"{mp_pkg_spec}>={min_msticpy_ver}"
        _disp_html(
            f"Please run the following command to upgrade MSTICPy<br>"
            f"<pre>!{mp_pkg_spec}</pre><br>"
        )
        raise ImportError(
            "Unsupported version of MSTICPy installed",
            f"Installed version: {inst_version}",
            f"Required version: {mp_min_pkg_ver}",
        )
    _disp_html(f"Info: msticpy version {mp_min_pkg_ver} OK<br>")
def check_mp_ver ( min_msticpy_ver : Union [ str , Tuple ] , extras : Optional [ List [ str ] ] ) : mp_min_pkg_ver = _get_pkg_version ( min_msticpy_ver ) _disp_html ( "Checking msticpy version...<br>" ) inst_version = _get_pkg_version ( __version__ ) if inst_version < mp_min_pkg_ver : _disp_html ( MISSING_PKG_ERR . format ( package = "msticpy" , inst_ver = inst_version , req_ver = mp_min_pkg_ver , ) ) mp_pkg_spec = f"msticpy[{','.join(extras)}]" if extras else "msticpy" mp_pkg_spec = f"{mp_pkg_spec}>={min_msticpy_ver}" _disp_html ( f"Please run the following command to upgrade MSTICPy<br>" f"<pre>!{mp_pkg_spec}</pre><br>" ) raise ImportError ( "Unsupported version of MSTICPy installed" , f"Installed version: {inst_version}" , f"Required version: {mp_min_pkg_ver}" , ) _disp_html ( f"Info: msticpy version {mp_min_pkg_ver} OK<br>" )
Check and optionally update the current version of msticpy.
Check and optionally update the current version of msticpy .
"""
    Check and optionally update the current version of msticpy.

    Parameters
    ----------
    min_msticpy_ver : Tuple[int, int]
        Minimum MSTICPy version
    extras : Optional[List[str]], optional
        A list of extras required for MSTICPy

    Raises
    ------
    ImportError
        If MSTICPy version is insufficient and we need to upgrade

    """
min_msticpy_ver
Union[str, Tuple]
extras
Optional[List[str]]