We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a5d274 + 91091bb commit c2141acCopy full SHA for c2141ac
interpreter/core/computer/terminal/languages/jupyter_language.py
@@ -5,6 +5,7 @@
5
6
import ast
7
import logging
8
+import sys
9
import os
10
import queue
11
import re
@@ -18,6 +19,17 @@
18
19
20
DEBUG_MODE = False
21
22
+# When running from an executable, ipykernel calls itself infinitely
23
+# This is a workaround to detect it and launch it manually
24
+if 'ipykernel_launcher' in sys.argv:
25
+ if sys.path[0] == '':
26
+ del sys.path[0]
27
+
28
+ from ipykernel import kernelapp as app
29
30
+ app.launch_new_instance()
31
+ sys.exit(0)
32
33
34
class JupyterLanguage(BaseLanguage):
35
file_extension = "py"
0 commit comments