python-color-math 0.2.16__py3-none-any.whl → 0.2.17__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 +1 -1
- color_math/ipython.py +11 -0
- {python_color_math-0.2.16.dist-info → python_color_math-0.2.17.dist-info}/METADATA +1 -1
- {python_color_math-0.2.16.dist-info → python_color_math-0.2.17.dist-info}/RECORD +8 -8
- {python_color_math-0.2.16.dist-info → python_color_math-0.2.17.dist-info}/WHEEL +0 -0
- {python_color_math-0.2.16.dist-info → python_color_math-0.2.17.dist-info}/entry_points.txt +0 -0
- {python_color_math-0.2.16.dist-info → python_color_math-0.2.17.dist-info}/licenses/LICENSE +0 -0
- {python_color_math-0.2.16.dist-info → python_color_math-0.2.17.dist-info}/top_level.txt +0 -0
color_math/__init__.py
CHANGED
color_math/ipython.py
CHANGED
|
@@ -257,6 +257,17 @@ if HAS_IPYTHON:
|
|
|
257
257
|
if self._orig_math_repr is not None:
|
|
258
258
|
Math._repr_latex_ = self._orig_math_repr # type: ignore[assignment]
|
|
259
259
|
self._auto_hook_active = False
|
|
260
|
+
else:
|
|
261
|
+
class ColorMath: # type: ignore[no-redef]
|
|
262
|
+
"""Fallback when IPython is not installed."""
|
|
263
|
+
|
|
264
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
265
|
+
raise ImportError(
|
|
266
|
+
"IPython is required to use ColorMath. Install it with 'pip install ipython' or 'pip install python-color-math[jupyter]'."
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
class ColorMathMagics: # type: ignore[no-redef]
|
|
270
|
+
pass
|
|
260
271
|
|
|
261
272
|
|
|
262
273
|
def load_ipython_extension(ipython: Any) -> None:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
color_math/__init__.py,sha256=
|
|
1
|
+
color_math/__init__.py,sha256=RKrr6cNZKmr81JSDhQBeqVBeuf1RL-OpWBQ0jqgfjQo,591
|
|
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=z8Op8UzZz4D0jMaAd8GGYwAbTwqR_2ZUG4Lb9f03Ii0,20982
|
|
|
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=
|
|
10
|
+
color_math/ipython.py,sha256=WWEumx9va4aw4AHm_DcRCE7PLq6rtt50_XrnDqcAwJE,12313
|
|
11
11
|
color_math/jupyter.py,sha256=CaCWNmtOPqUn0CVZdCie28M1324y0iU6ck2vxCvMn6w,3067
|
|
12
12
|
color_math/main.py,sha256=Prk2pOGwqAlS9Yn62ACBnZv6XsQEco_NqrQYacU4kUo,34253
|
|
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.
|
|
54
|
-
python_color_math-0.2.
|
|
55
|
-
python_color_math-0.2.
|
|
56
|
-
python_color_math-0.2.
|
|
57
|
-
python_color_math-0.2.
|
|
58
|
-
python_color_math-0.2.
|
|
53
|
+
python_color_math-0.2.17.dist-info/licenses/LICENSE,sha256=hveQNxqYFqK9Brs_ruH-8shF2D61hIVKYdCjiE-1wMY,1063
|
|
54
|
+
python_color_math-0.2.17.dist-info/METADATA,sha256=G3UNzZicxqfZ_FJGNTTSUbluoI8iFlZizsOKjijVNxo,14469
|
|
55
|
+
python_color_math-0.2.17.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
56
|
+
python_color_math-0.2.17.dist-info/entry_points.txt,sha256=ZgzGbO_D3csr693Fd-tVGhls6WzsZiOhCau-liSkE_M,130
|
|
57
|
+
python_color_math-0.2.17.dist-info/top_level.txt,sha256=dkfmCdtILDAgX4wwDW5DKHh9YRLt9Mh2RU0gh1mBDDA,29
|
|
58
|
+
python_color_math-0.2.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|