nbsync 0.4.1__tar.gz → 0.4.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: nbsync
3
- Version: 0.4.1
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 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "nbsync"
7
- version = "0.4.1"
7
+ version = "0.4.2"
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" }
@@ -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
- path = src_uri or ".md" if url == ".md" else self.store.find_path(url)
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()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes