nbsync 0.2.2__py3-none-any.whl → 0.3.0__py3-none-any.whl
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.
- nbsync/logger.py +1 -1
- nbsync/sync.py +1 -1
- {nbsync-0.2.2.dist-info → nbsync-0.3.0.dist-info}/METADATA +1 -1
- {nbsync-0.2.2.dist-info → nbsync-0.3.0.dist-info}/RECORD +6 -6
- {nbsync-0.2.2.dist-info → nbsync-0.3.0.dist-info}/WHEEL +0 -0
- {nbsync-0.2.2.dist-info → nbsync-0.3.0.dist-info}/licenses/LICENSE +0 -0
nbsync/logger.py
CHANGED
@@ -7,7 +7,7 @@ from typing import Any
|
|
7
7
|
_logger = logging.getLogger("nbsync")
|
8
8
|
|
9
9
|
|
10
|
-
def
|
10
|
+
def set_logger(logger: Logger | LoggerAdapter | None = None) -> Logger | LoggerAdapter:
|
11
11
|
global _logger # noqa: PLW0603
|
12
12
|
|
13
13
|
if logger:
|
nbsync/sync.py
CHANGED
@@ -92,7 +92,7 @@ def convert(
|
|
92
92
|
elem: Image | CodeBlock,
|
93
93
|
notebooks: dict[str, Notebook],
|
94
94
|
) -> str | Cell:
|
95
|
-
if elem.identifier not in [".", "_"]:
|
95
|
+
if elem.identifier not in [".", "_"] or "source" in elem.attributes:
|
96
96
|
if isinstance(elem, Image):
|
97
97
|
if elem.url not in notebooks:
|
98
98
|
logger.warning(f"Notebook not found: {elem.url}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nbsync
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.3.0
|
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
|
@@ -1,11 +1,11 @@
|
|
1
1
|
nbsync/__init__.py,sha256=3NuWx9D0LcBnXjEKrC-uypNDOz8rLWXI7mIjdN9xSeE,126
|
2
2
|
nbsync/cell.py,sha256=C7VqQO3mxZ7Nj4ufywTnaqZAegT7zqA6iN2WV6X5X5c,3786
|
3
|
-
nbsync/logger.py,sha256=
|
3
|
+
nbsync/logger.py,sha256=snNRqi9xESj4B-Z9GQffCBlgqeVujvuXuBveWAebIWM,736
|
4
4
|
nbsync/markdown.py,sha256=xcPhQKWpFDyVQ_xtZCpFrnR0QED_hYs4PAyaT7dF3t4,3830
|
5
5
|
nbsync/notebook.py,sha256=Voh-e8RQsoYmWKnaHzAn4bm6Ud5v-aHwmng2Uc0rUts,1009
|
6
6
|
nbsync/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
-
nbsync/sync.py,sha256=
|
8
|
-
nbsync-0.
|
9
|
-
nbsync-0.
|
10
|
-
nbsync-0.
|
11
|
-
nbsync-0.
|
7
|
+
nbsync/sync.py,sha256=ZzMPeshh6BCPI6bqCEOrx-SFr7GCajL8F1QxdbOArd0,3864
|
8
|
+
nbsync-0.3.0.dist-info/METADATA,sha256=xFYrqf716ERx8y95_8U5cDt2Er2CzdnHUgSg7uLlwr8,6552
|
9
|
+
nbsync-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
nbsync-0.3.0.dist-info/licenses/LICENSE,sha256=wy1pqn52upuo_qYwY-epWmspwE-3UWJso0xodciGXYc,1062
|
11
|
+
nbsync-0.3.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|