Skip to content

Commit

Permalink
Remove root_dir JupyterLab "hack" for wider compatibility (danielfrg#162
Browse files Browse the repository at this point in the history
)
  • Loading branch information
djuarezg authored and maximethebault committed May 6, 2024
1 parent 1b88ca0 commit b0298d5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions s3contents/genericmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,6 @@ def get(self, path, content=True, type=None, format=None):
format,
)

# This is a hack to remove some startup dialog error from JupyterLab
# TODO: Figure out why is this happening
if self.parent:
if path.startswith(self.parent.root_dir):
self.log.debug(
"S3contents.GenericManager.get: removing root_dir (%s) from path",
self.parent.root_dir,
)
path = path[len(self.parent.root_dir) :]
# END hack

path = path.strip("/")

if type is None:
Expand Down

0 comments on commit b0298d5

Please sign in to comment.