This commit is contained in:
2024-09-28 22:51:35 -07:00
parent 7e1c6020ba
commit 5cdaf1f76b
5910 changed files with 933303 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
"""Entry point for launching an IPython kernel.
This is separate from the ipykernel package so we can avoid doing imports until
after removing the cwd from sys.path.
"""
import sys
from pathlib import Path
if __name__ == "__main__":
# Remove the CWD from sys.path while we load stuff.
# This is added back by InteractiveShellApp.init_path()
if sys.path[0] == "" or Path(sys.path[0]) == Path.cwd():
del sys.path[0]
from ipykernel import kernelapp as app
app.launch_new_instance()