Skip to content

Commit

Permalink
Merge branch '153957-patch-1' into 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Apr 16, 2019
2 parents 939d437 + 08b8951 commit c3533f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupytext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def __init__(self):

def load_jupyter_server_extension(app): # pragma: no cover
"""Use Jupytext's contents manager"""
if app.contents_manager_class == TextFileContentsManager:
if isinstance(app.contents_manager_class, TextFileContentsManager):
app.log.info("[Jupytext Server Extension] NotebookApp.contents_manager_class is "
"jupytext.TextFileContentsManager already - OK")
"(a subclass of) jupytext.TextFileContentsManager already - OK")
return

# The server extension call is too late!
Expand Down

0 comments on commit c3533f9

Please sign in to comment.