nbsync 0.4.1__py3-none-any.whl → 0.4.2__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/sync.py
CHANGED
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import re
|
|
4
4
|
import textwrap
|
|
5
5
|
from dataclasses import dataclass, field
|
|
6
|
+
from pathlib import Path
|
|
6
7
|
from typing import TYPE_CHECKING
|
|
7
8
|
|
|
8
9
|
import nbformat
|
|
@@ -45,7 +46,10 @@ class Synchronizer:
|
|
|
45
46
|
if not notebook.execution_needed:
|
|
46
47
|
continue
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
if url == ".md":
|
|
50
|
+
path = src_uri or ".md"
|
|
51
|
+
else:
|
|
52
|
+
path = str(self.store.find_path(url).relative_to(Path.cwd()))
|
|
49
53
|
|
|
50
54
|
try:
|
|
51
55
|
elapsed = notebook.execute()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: nbsync
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: A core library to synchronize Jupyter notebooks and Markdown documents, enabling seamless integration and dynamic content execution
|
|
5
5
|
Keywords: jupyter,notebook,documentation,markdown,python,visualization,dynamic-execution,real-time-sync
|
|
6
6
|
Author: daizutabi
|
|
@@ -4,7 +4,7 @@ nbsync/logger.py,sha256=4nXvoy5_5Xd2uXCiT_0u1LqOI6L5ZgV4PFCCmy3leVM,759
|
|
|
4
4
|
nbsync/markdown.py,sha256=2jIyKL-jSjIw3pPsCDIoyYL3MuHAhV9MjfuXa7zh0XA,4549
|
|
5
5
|
nbsync/notebook.py,sha256=XA7Z7nlIZzSMD5UNfkf5EeKe22t5M9P6R7-EHVJtU2s,1284
|
|
6
6
|
nbsync/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
nbsync/sync.py,sha256=
|
|
8
|
-
nbsync-0.4.
|
|
9
|
-
nbsync-0.4.
|
|
10
|
-
nbsync-0.4.
|
|
7
|
+
nbsync/sync.py,sha256=Raxy8FRPtHNkYhpO7Z-vBEke586ctCg21Ivd04nqZk0,5158
|
|
8
|
+
nbsync-0.4.2.dist-info/WHEEL,sha256=5w2T7AS2mz1-rW9CNagNYWRCaB0iQqBMYLwKdlgiR4Q,78
|
|
9
|
+
nbsync-0.4.2.dist-info/METADATA,sha256=4M4CkjuTEoLQVcUCoIDpof4iP5ojNzR3wYjDiwbEYAY,7232
|
|
10
|
+
nbsync-0.4.2.dist-info/RECORD,,
|
|
File without changes
|