Skip to content

Commit 237d4a1

Browse files
committed
Clean up after rebase
1 parent bee3d17 commit 237d4a1

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

jupyter_server_documents/outputs/manager.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -98,32 +98,6 @@ def get_outputs(self, file_id, cell_id):
9898

9999
return outputs
100100

101-
def get_outputs(self, file_id, cell_id):
102-
"""Get all outputs by file_id, cell_id."""
103-
path = self._build_path(file_id, cell_id)
104-
if not os.path.isdir(path):
105-
raise FileNotFoundError(f"The output dir doesn't exist: {path}")
106-
107-
outputs = []
108-
109-
output_files = [(f, int(f.stem)) for f in path.glob("*.output")]
110-
output_files.sort(key=lambda x: x[1])
111-
output_files = output_files[: self.stream_limit]
112-
has_more_files = len(output_files) >= self.stream_limit
113-
114-
outputs = []
115-
for file_path, _ in output_files:
116-
with open(file_path, "r", encoding="utf-8") as f:
117-
output = f.read()
118-
outputs.append(output)
119-
120-
if has_more_files:
121-
url = create_output_url(file_id, cell_id)
122-
placeholder = create_placeholder_dict("display_data", url, full=True)
123-
outputs.append(json.dumps(placeholder))
124-
125-
return outputs
126-
127101
def get_stream(self, file_id, cell_id):
128102
"Get the stream output for a cell by file_id and cell_id."
129103
path = self._build_path(file_id, cell_id) / "stream"

0 commit comments

Comments
 (0)