python-color-math 0.2.19__py3-none-any.whl → 0.2.20__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.
color_math/__init__.py CHANGED
@@ -13,7 +13,7 @@ from .undo import uncolor_text
13
13
 
14
14
  from .ipython import ColorMath, colormath, load_ipython_extension, unload_ipython_extension
15
15
 
16
- __version__ = "0.2.19"
16
+ __version__ = "0.2.20"
17
17
 
18
18
  __all__ = [
19
19
  "__version__",
color_math/ipython.py CHANGED
@@ -80,11 +80,9 @@ if HAS_IPYTHON:
80
80
  self._auto_hook_active = False
81
81
  self._orig_math_repr = None
82
82
  palette, options, _ = load_config()
83
- local_or_global = Path(".colormath.json").exists() or bool(
84
- get_global_config_path() and get_global_config_path().exists()
85
- )
83
+ cfg_path, _ = find_config_path()
86
84
  self._palette = palette
87
- self._options = options if local_or_global else ColorMathOptions.extended()
85
+ self._options = options if cfg_path is not None else ColorMathOptions.extended()
88
86
 
89
87
  def _parse_magic_args(self, arg_str: str) -> tuple[str | None, ColorMathOptions, str]:
90
88
  """Parse leading flags (--theme, -v, --variables) without corrupting LaTeX backslashes."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-color-math
3
- Version: 0.2.19
3
+ Version: 0.2.20
4
4
  Summary: A fast, local semantic LaTeX colorizer for Markdown, Jupyter, and LaTeX math equations.
5
5
  Author: Aditya
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- color_math/__init__.py,sha256=Oece6QFXB2Gbmt-VbUNSWBGMTMoSSaNHLu9IU89aDNE,786
1
+ color_math/__init__.py,sha256=QC26ZMkEe8pqXYZeJnc2s3dVlftaLvkyOom1Ew0MZx8,786
2
2
  color_math/__main__.py,sha256=lU6t3BklI-5H9EdprlceWLr0UcDmfXUu3Th0tjk2ANA,81
3
3
  color_math/adapters.py,sha256=glMvD8Bma_865jmOvIGGkCRxQLIEGjToFDOqJy_WeWA,12293
4
4
  color_math/colormath.default.json,sha256=KmQb7BV7sMMIqPxR4x6i9RwuXuUqkpyiy4yHw84GxPQ,2756
@@ -7,7 +7,7 @@ color_math/config.py,sha256=tCOnGDqPlPhwBihBQVPddZaao2hxU52RNtS2MGFpDNQ,24607
7
7
  color_math/custom_definitions.py,sha256=IYJ_L51d1vyFf5frbJoFMIagKRcI7TiNzELfoewZyjk,2392
8
8
  color_math/gui.py,sha256=cBsgNToQdZ7mNQ9JA5_jEv7QbELc4NGtgXowTxZ-IWQ,21413
9
9
  color_math/io.py,sha256=iCWMY1ufPZzFCwuHTn_axNetek8PRXGNnrmz59CrlGw,1591
10
- color_math/ipython.py,sha256=LP3XAUEylsQHMBrqSKuPE9UKY-vmfn_sX6G39LVYwTc,13908
10
+ color_math/ipython.py,sha256=TPiZQJaqaA5YGzfAkH_u1TBZGTWne__Eclxlazyipcc,13793
11
11
  color_math/jupyter.py,sha256=CaCWNmtOPqUn0CVZdCie28M1324y0iU6ck2vxCvMn6w,3067
12
12
  color_math/main.py,sha256=QL7HYST-Su43YzgRELxNSjmphz25DJMEq8XTIKkWRSc,35295
13
13
  color_math/mcp.py,sha256=M-JTnWC-xhJemIv2F0ZI4VBF5_MUmasid5B4PIIPgSo,1112
@@ -50,9 +50,9 @@ color_math/utils/latex_helpers.py,sha256=1cFj0zqv68mD-p0vej6yPrhwgqLfAWcIV1rX15F
50
50
  color_math/utils/spans.py,sha256=3Lq1_bN0s4vSYnS8Rz9tCHoFoJDY6Ff9CzawWWws3YE,3938
51
51
  python_color_math/__init__.py,sha256=Dj5YZXXjmNgbyhHKX2YQXvVggtB9UZy9zotLiV2j5So,329
52
52
  python_color_math/__main__.py,sha256=cqUM_fV0E6mtuHeBn2MjuozR2rlpev9AfXfcm2hSpi8,90
53
- python_color_math-0.2.19.dist-info/licenses/LICENSE,sha256=hveQNxqYFqK9Brs_ruH-8shF2D61hIVKYdCjiE-1wMY,1063
54
- python_color_math-0.2.19.dist-info/METADATA,sha256=69qBdhk8tO26nwXth7AcxfE7V4SpQM_Sn10wASFjjns,14469
55
- python_color_math-0.2.19.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
56
- python_color_math-0.2.19.dist-info/entry_points.txt,sha256=ZgzGbO_D3csr693Fd-tVGhls6WzsZiOhCau-liSkE_M,130
57
- python_color_math-0.2.19.dist-info/top_level.txt,sha256=dkfmCdtILDAgX4wwDW5DKHh9YRLt9Mh2RU0gh1mBDDA,29
58
- python_color_math-0.2.19.dist-info/RECORD,,
53
+ python_color_math-0.2.20.dist-info/licenses/LICENSE,sha256=hveQNxqYFqK9Brs_ruH-8shF2D61hIVKYdCjiE-1wMY,1063
54
+ python_color_math-0.2.20.dist-info/METADATA,sha256=9My67JDGkNrwYafVaiydGSeG6D23n3YG45nMytGpbLo,14469
55
+ python_color_math-0.2.20.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
56
+ python_color_math-0.2.20.dist-info/entry_points.txt,sha256=ZgzGbO_D3csr693Fd-tVGhls6WzsZiOhCau-liSkE_M,130
57
+ python_color_math-0.2.20.dist-info/top_level.txt,sha256=dkfmCdtILDAgX4wwDW5DKHh9YRLt9Mh2RU0gh1mBDDA,29
58
+ python_color_math-0.2.20.dist-info/RECORD,,