msticpy/nbtools/azure_ml_tools.py
def _set_kql_env_vars(extras: Optional[List[str]]):
    """Set environment variables for Kqlmagic based on MP extras."""
    jp_extended = ("azsentinel", "azuresentinel", "kql")
    if extras and any(extra for extra in extras if extra in jp_extended):
        os.environ["KQLMAGIC_EXTRAS_REQUIRE"] = "jupyter-extended"
    else:
        os.environ["KQLMAGIC_EXTRAS_REQUIRE"] = "jupyter-basic"
    if is_in_aml():
        os.environ["KQLMAGIC_AZUREML_COMPUTE"] = _get_vm_fqdn()
Set environment variables for Kqlmagic based on MP extras.
Set environment variables for Kqlmagic based on MP extras.
Set environment variables for Kqlmagic based on MP extras .
def _set_kql_env_vars(extras: Optional[List[str]]):
    jp_extended = ("azsentinel", "azuresentinel", "kql")
    if extras and any(extra for extra in extras if extra in jp_extended):
        os.environ["KQLMAGIC_EXTRAS_REQUIRE"] = "jupyter-extended"
    else:
        os.environ["KQLMAGIC_EXTRAS_REQUIRE"] = "jupyter-basic"
    if is_in_aml():
        os.environ["KQLMAGIC_AZUREML_COMPUTE"] = _get_vm_fqdn()
def _set_kql_env_vars ( extras : Optional [ List [ str ] ] ) : jp_extended = ( "azsentinel" , "azuresentinel" , "kql" ) if extras and any ( extra for extra in extras if extra in jp_extended ) : os . environ [ "KQLMAGIC_EXTRAS_REQUIRE" ] = "jupyter-extended" else : os . environ [ "KQLMAGIC_EXTRAS_REQUIRE" ] = "jupyter-basic" if is_in_aml ( ) : os . environ [ "KQLMAGIC_AZUREML_COMPUTE" ] = _get_vm_fqdn ( )
Set environment variables for Kqlmagic based on MP extras.
Set environment variables for Kqlmagic based on MP extras .
"""Set environment variables for Kqlmagic based on MP extras."""
extras
Optional[List[str]]