Skip to content

Commit

Permalink
Fallback on FileContentsManager when LargeFileManager is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Apr 16, 2019
1 parent c3533f9 commit 08a54a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jupytext/contentsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
except ImportError:
pass

from notebook.services.contents.largefilemanager import LargeFileManager
try:
from notebook.services.contents.largefilemanager import LargeFileManager
except ImportError:
# Older versions of notebook do not have the LargeFileManager #217
from notebook.services.contents.filemanager import FileContentsManager as LargeFileManager

from jupyter_client.kernelspec import find_kernel_specs, get_kernel_spec

from .jupytext import reads, writes, create_prefix_dir
Expand Down

0 comments on commit 08a54a3

Please sign in to comment.