Skip to content

Commit 6603be9

Browse files
committed
Allow running from frozen executable
1 parent 3231002 commit 6603be9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

interpreter/core/computer/terminal/languages/jupyter_language.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
DEBUG_MODE = False
2121

22-
23-
# Handling the case where the script is called as a kernel
22+
# When running from an executable, ipykernel calls itself infinitely
23+
# This is a workaround to detect it and launch it manually
2424
if 'ipykernel_launcher' in sys.argv:
2525
if sys.path[0] == '':
2626
del sys.path[0]
@@ -31,7 +31,6 @@
3131
sys.exit(0)
3232

3333

34-
# Rest of your Open Interpreter code
3534
class JupyterLanguage(BaseLanguage):
3635
file_extension = "py"
3736
name = "Python"

0 commit comments

Comments
 (0)