def validate_IPykernel(venv_dir):
python_exe_name = find_exe(venv_dir, "<STR_LIT>")<EOL>if python_exe_name is None:<EOL><INDENT>python_exe_name = find_exe(venv_dir, "<STR_LIT>")<EOL><DEDENT>if python_exe_name is None:<EOL><INDENT>python_exe_name = find_exe(venv_dir, "<STR_LIT>")<EOL><DEDENT>if python_exe_name is None:<EOL><INDENT>return [], None, None<EOL><DEDENT>if find_exe(venv_dir, "<STR_LIT>") is None:<EOL><INDENT>if find_exe(venv_dir, "<STR_LIT>") is None:<EOL><INDENT>if find_exe(venv_dir, "<STR_LIT>") is None:<EOL><INDENT>return [], None, None<EOL><DEDENT><DEDENT><DEDENT>import subprocess<EOL>try:<EOL><INDENT>subprocess.check_call([python_exe_name, '<STR_LIT:-c>', '<STR_LIT>'])<EOL><DEDENT>except:<EOL><INDENT>return [], None, None<EOL><DEDENT>argv = [python_exe_name, "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]<EOL>resources_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "<STR_LIT>", "<STR_LIT>")<EOL>return argv, "<STR_LIT>", resources_dir<EOL>
Validates that this env contains an IPython kernel and returns info to start it


    Returns: tuple
        (ARGV, language, resource_dir)