msticpy/nbtools/azure_ml_tools.py
def check_versions(
    min_py_ver: Union[str, Tuple] = MIN_PYTHON_VER_DEF,
    min_mp_ver: Union[str, Tuple] = MSTICPY_REQ_VERSION,
    extras: Optional[List[str]] = None,
    mp_release: Optional[str] = None,
    **kwargs,
):
    """
    Check the current versions of the Python kernel and MSTICPy.

    Parameters
    ----------
    min_py_ver : Union[Tuple[int, int], str]
        Minimum Python version
    min_mp_ver : Union[Tuple[int, int], str]
        Minimum MSTICPy version
    extras : Optional[List[str]], optional
        A list of extras required for MSTICPy
    mp_release : Optional[str], optional
        Override the MSTICPy release version. This
        can also be specified in the environment variable 'MP_TEST_VER'

    Raises
    ------
    RuntimeError
        If the Python version does not support the notebook.
        If the MSTICPy version does not support the notebook
        and the user chose not to upgrade

    """
    del kwargs
    _disp_html("<h4>Starting notebook pre-checks...</h4>")
    if isinstance(min_py_ver, str):
        min_py_ver = _get_pkg_version(min_py_ver).release
    check_python_ver(min_py_ver=min_py_ver)

    if is_in_aml() and not _check_nb_check_ver():
        _disp_html("Check stopped because nb_check has been updated.")
        return
    _check_mp_install(min_mp_ver, mp_release, extras)
    _check_kql_prereqs()
    _set_kql_env_vars(extras)
    _run_user_settings()
    _set_mpconfig_var()
    _disp_html("<h4>Notebook pre-checks complete.</h4>")

    Check the current versions of the Python kernel and MSTICPy.

    Parameters
    ----------
    min_py_ver : Union[Tuple[int, int], str]
        Minimum Python version
    min_mp_ver : Union[Tuple[int, int], str]
        Minimum MSTICPy version
    extras : Optional[List[str]], optional
        A list of extras required for MSTICPy
    mp_release : Optional[str], optional
        Override the MSTICPy release version. This
        can also be specified in the environment variable 'MP_TEST_VER'

    Raises
    ------
    RuntimeError
        If the Python version does not support the notebook.
        If the MSTICPy version does not support the notebook
        and the user chose not to upgrade

    
Check the current versions of the Python kernel and MSTICPy.
Parameters



Raises

RuntimeError
If the Python version does not support the notebook.
If the MSTICPy version does not support the notebook
and the user chose not to upgrade
Check the current versions of the Python kernel and MSTICPy . Parameters Raises RuntimeError If the Python version does not support the notebook . If the MSTICPy version does not support the notebook and the user chose not to upgrade
def check_versions(
    min_py_ver: Union[str, Tuple] = MIN_PYTHON_VER_DEF,
    min_mp_ver: Union[str, Tuple] = MSTICPY_REQ_VERSION,
    extras: Optional[List[str]] = None,
    mp_release: Optional[str] = None,
    **kwargs,
):
    del kwargs
    _disp_html("<h4>Starting notebook pre-checks...</h4>")
    if isinstance(min_py_ver, str):
        min_py_ver = _get_pkg_version(min_py_ver).release
    check_python_ver(min_py_ver=min_py_ver)
    if is_in_aml() and not _check_nb_check_ver():
        _disp_html("Check stopped because nb_check has been updated.")
        return
    _check_mp_install(min_mp_ver, mp_release, extras)
    _check_kql_prereqs()
    _set_kql_env_vars(extras)
    _run_user_settings()
    _set_mpconfig_var()
    _disp_html("<h4>Notebook pre-checks complete.</h4>")
def check_versions ( min_py_ver : Union [ str , Tuple ] = MIN_PYTHON_VER_DEF , min_mp_ver : Union [ str , Tuple ] = MSTICPY_REQ_VERSION , extras : Optional [ List [ str ] ] = None , mp_release : Optional [ str ] = None , ** kwargs , ) : del kwargs _disp_html ( "<h4>Starting notebook pre-checks...</h4>" ) if isinstance ( min_py_ver , str ) : min_py_ver = _get_pkg_version ( min_py_ver ) . release check_python_ver ( min_py_ver = min_py_ver ) if is_in_aml ( ) and not _check_nb_check_ver ( ) : _disp_html ( "Check stopped because nb_check has been updated." ) return _check_mp_install ( min_mp_ver , mp_release , extras ) _check_kql_prereqs ( ) _set_kql_env_vars ( extras ) _run_user_settings ( ) _set_mpconfig_var ( ) _disp_html ( "<h4>Notebook pre-checks complete.</h4>" )
Check the current versions of the Python kernel and MSTICPy.
Check the current versions of the Python kernel and MSTICPy .
"""
    Check the current versions of the Python kernel and MSTICPy.

    Parameters
    ----------
    min_py_ver : Union[Tuple[int, int], str]
        Minimum Python version
    min_mp_ver : Union[Tuple[int, int], str]
        Minimum MSTICPy version
    extras : Optional[List[str]], optional
        A list of extras required for MSTICPy
    mp_release : Optional[str], optional
        Override the MSTICPy release version. This
        can also be specified in the environment variable 'MP_TEST_VER'

    Raises
    ------
    RuntimeError
        If the Python version does not support the notebook.
        If the MSTICPy version does not support the notebook
        and the user chose not to upgrade

    """
min_py_ver
Union[str, Tuple]
min_mp_ver
Union[str, Tuple]
extras
Optional[List[str]]
mp_release
Optional[str]