Skip to content

Commit

Permalink
Notebook 7 compatibility fixes (#122)
Browse files Browse the repository at this point in the history
* Change from notebook.services to jupyter_server.services

* Update changelog

---------

Co-authored-by: Jay Qi <[email protected]>
  • Loading branch information
jayqi and jayqi committed Jul 28, 2023
1 parent ce3e0ac commit 379ff06
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## 0.5.2 (2023-07-28)

- Fixes compatibility with Notebook 7. ([PR #122](https://github.com/drivendataorg/nbautoexport/pull/122))

## 0.5.1 (2023-07-18)

- Add support for `pydantic>=2.0.0` ([PR #119](https://github.com/drivendataorg/nbautoexport/pull/119))
Expand Down
2 changes: 1 addition & 1 deletion nbautoexport/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from nbconvert.nbconvertapp import NbConvertApp
from nbconvert.postprocessors.base import PostProcessorBase
from notebook.services.contents.filemanager import FileContentsManager
from jupyter_server.services.contents.filemanager import FileContentsManager

from nbautoexport.clean import FORMATS_WITH_IMAGE_DIR
from nbautoexport.sentinel import (
Expand Down
2 changes: 1 addition & 1 deletion tests/test_jupyter_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
import textwrap

from notebook.services.contents.filemanager import FileContentsManager
from jupyter_server.services.contents.filemanager import FileContentsManager
from traitlets.config.loader import Config

from nbautoexport import __version__
Expand Down
2 changes: 1 addition & 1 deletion tests/test_post_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import shutil

import nbformat
from notebook.services.contents.filemanager import FileContentsManager
from jupyter_server.services.contents.filemanager import FileContentsManager
import pytest
from traitlets.config import Config

Expand Down

0 comments on commit 379ff06

Please sign in to comment.