"""Entry point for launching an IPython kernel.This is separate from the ipykernel package so we can avoid doing imports untilafter removing the cwd from sys.path."""importsysif__name__=='__main__':# Remove the CWD from sys.path while we load stuff.# This is added back by InteractiveShellApp.init_path()ifsys.path[0]=='':delsys.path[0]fromipykernelimportkernelappasappapp.launch_new_instance()