Skip to content

Commit 69b6fd7

Browse files
authored
Revert "Expose session start file in __file__. (#1078)"
This reverts commit 1185d12.
1 parent 0f09aa6 commit 69b6fd7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ipykernel/ipkernel.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import asyncio
44
import builtins
55
import getpass
6-
import os
76
import signal
87
import sys
98
import threading
@@ -127,11 +126,6 @@ def __init__(self, **kwargs):
127126
compiler_class=XCachingCompiler,
128127
)
129128
self.shell.displayhook.session = self.session
130-
131-
jupyter_session_name = os.environ.get('JPY_SESSION_NAME')
132-
if jupyter_session_name:
133-
self.shell.user_ns['__file__'] = jupyter_session_name
134-
135129
self.shell.displayhook.pub_socket = self.iopub_socket
136130
self.shell.displayhook.topic = self._topic("execute_result")
137131
self.shell.display_pub.session = self.session

0 commit comments

Comments
 (0)