nbsync 0.3.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {nbsync-0.3.0 → nbsync-0.3.1}/PKG-INFO +1 -1
  2. {nbsync-0.3.0 → nbsync-0.3.1}/pyproject.toml +1 -1
  3. {nbsync-0.3.0 → nbsync-0.3.1}/src/nbsync/notebook.py +8 -2
  4. {nbsync-0.3.0 → nbsync-0.3.1}/.devcontainer/devcontainer.json +0 -0
  5. {nbsync-0.3.0 → nbsync-0.3.1}/.devcontainer/postCreate.sh +0 -0
  6. {nbsync-0.3.0 → nbsync-0.3.1}/.devcontainer/starship.toml +0 -0
  7. {nbsync-0.3.0 → nbsync-0.3.1}/.gitattributes +0 -0
  8. {nbsync-0.3.0 → nbsync-0.3.1}/.github/workflows/ci.yaml +0 -0
  9. {nbsync-0.3.0 → nbsync-0.3.1}/.github/workflows/docs.yaml +0 -0
  10. {nbsync-0.3.0 → nbsync-0.3.1}/.github/workflows/publish.yaml +0 -0
  11. {nbsync-0.3.0 → nbsync-0.3.1}/.gitignore +0 -0
  12. {nbsync-0.3.0 → nbsync-0.3.1}/LICENSE +0 -0
  13. {nbsync-0.3.0 → nbsync-0.3.1}/README.md +0 -0
  14. {nbsync-0.3.0 → nbsync-0.3.1}/docs/index.md +0 -0
  15. {nbsync-0.3.0 → nbsync-0.3.1}/mkdocs.yaml +0 -0
  16. {nbsync-0.3.0 → nbsync-0.3.1}/src/nbsync/__init__.py +0 -0
  17. {nbsync-0.3.0 → nbsync-0.3.1}/src/nbsync/cell.py +0 -0
  18. {nbsync-0.3.0 → nbsync-0.3.1}/src/nbsync/logger.py +0 -0
  19. {nbsync-0.3.0 → nbsync-0.3.1}/src/nbsync/markdown.py +0 -0
  20. {nbsync-0.3.0 → nbsync-0.3.1}/src/nbsync/py.typed +0 -0
  21. {nbsync-0.3.0 → nbsync-0.3.1}/src/nbsync/sync.py +0 -0
  22. {nbsync-0.3.0 → nbsync-0.3.1}/tests/__init__.py +0 -0
  23. {nbsync-0.3.0 → nbsync-0.3.1}/tests/conftest.py +0 -0
  24. {nbsync-0.3.0 → nbsync-0.3.1}/tests/test_cell.py +0 -0
  25. {nbsync-0.3.0 → nbsync-0.3.1}/tests/test_logger.py +0 -0
  26. {nbsync-0.3.0 → nbsync-0.3.1}/tests/test_markdown.py +0 -0
  27. {nbsync-0.3.0 → nbsync-0.3.1}/tests/test_notebook.py +0 -0
  28. {nbsync-0.3.0 → nbsync-0.3.1}/tests/test_sync.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbsync
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: A core library to synchronize Jupyter notebooks and Markdown documents, enabling seamless integration and dynamic content execution
5
5
  Project-URL: Documentation, https://daizutabi.github.io/nbsync/
6
6
  Project-URL: Source, https://github.com/daizutabi/nbsync
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nbsync"
7
- version = "0.3.0"
7
+ version = "0.3.1"
8
8
  description = "A core library to synchronize Jupyter notebooks and Markdown documents, enabling seamless integration and dynamic content execution"
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
@@ -5,6 +5,8 @@ from typing import TYPE_CHECKING
5
5
 
6
6
  import nbstore.notebook
7
7
 
8
+ from nbsync import logger
9
+
8
10
  if TYPE_CHECKING:
9
11
  from nbformat import NotebookNode
10
12
 
@@ -35,5 +37,9 @@ class Notebook:
35
37
  return nbstore.notebook.equals(self.nb, other.nb)
36
38
 
37
39
  def execute(self) -> None:
38
- nbstore.notebook.execute(self.nb)
39
- self.execution_needed = False
40
+ try:
41
+ nbstore.notebook.execute(self.nb)
42
+ self.execution_needed = False
43
+
44
+ except ModuleNotFoundError as e: # no cov
45
+ logger.warning(e.msg)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes