plotnine 0.15.1__py3-none-any.whl → 0.15.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.
plotnine/_utils/quarto.py CHANGED
@@ -47,8 +47,13 @@ def is_knitr_engine() -> bool:
47
47
  import json
48
48
  from pathlib import Path
49
49
 
50
- info = json.loads(Path(filename).read_text())
51
- return info["format"]["execute"]["engine"] == "knitr"
50
+ try:
51
+ info = json.loads(Path(filename).read_text())
52
+ except FileNotFoundError:
53
+ # NOTE: Remove this branch some time after quarto 1.9 is released
54
+ # https://github.com/quarto-dev/quarto-cli/issues/13613
55
+ return "rpytools" in sys.modules
56
+ return info["format"]["execute"].get("engine") == "knitr"
52
57
  else:
53
58
  # NOTE: Remove this branch some time after quarto 1.9 is released
54
59
  return "rpytools" in sys.modules
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotnine
3
- Version: 0.15.1
3
+ Version: 0.15.2
4
4
  Summary: A Grammar of Graphics for Python
5
5
  Author-email: Hassan Kibirige <has2k1@gmail.com>
6
6
  License: The MIT License (MIT)
@@ -29,7 +29,7 @@ plotnine/_utils/__init__.py,sha256=3tcSTng6Mtk1o6NPEikALHKD3ZGuAYofjQJREHX84a4,3
29
29
  plotnine/_utils/context.py,sha256=FLKPhltYqkZRvzufG2WxXV0sMnZxNXqqZyb3nrnsFyY,3906
30
30
  plotnine/_utils/dev.py,sha256=0qgRbMhcd4dfuLuYxx0skocKAtfwHF02ntyILRBogbg,1629
31
31
  plotnine/_utils/ipython.py,sha256=r5JfBCO9BEqXHoP5JGxxYdGTj5zuLNs44kdLhTz5o2o,1684
32
- plotnine/_utils/quarto.py,sha256=oHYZ2p5G5i-72fx7WCBBtxa_1uXVx9_NvTBoB4TS46A,1541
32
+ plotnine/_utils/quarto.py,sha256=S2wa9lx8I6S3yFiDvVEjB3X6WumSm-y9iYPupmgAQNo,1787
33
33
  plotnine/_utils/registry.py,sha256=HoiB2NnbEHufXjYnVJyrJKflk2RwKtTYk2L3n7tH4XA,3321
34
34
  plotnine/_utils/yippie.py,sha256=DbmxvVrd34P24CCmOZrAulyGQ35rXNaSr8BuutS2Uio,2392
35
35
  plotnine/composition/__init__.py,sha256=yJSYKBDmHw9viTijLRaczD3LNpjOtx9nRGPg3PNIvpA,198
@@ -214,8 +214,8 @@ plotnine/themes/elements/element_line.py,sha256=yZvj9B3M2a7a8o2J0n-q0uviNv34PtJV
214
214
  plotnine/themes/elements/element_rect.py,sha256=w5cLH-Sr4cTRXVdkRiu8kBqFt3TXHhIb1MUITfi89gE,1767
215
215
  plotnine/themes/elements/element_text.py,sha256=8yhwBa9s9JKCtBcqcBNybbCGK6ieDnZv4SHiC4Sy2qc,6255
216
216
  plotnine/themes/elements/margin.py,sha256=jMHe-UKHHer_VYwAVDC-Tz2-AP_4YDuXPTWAuacoqgU,4080
217
- plotnine-0.15.1.dist-info/licenses/LICENSE,sha256=GY4tQiUd17Tq3wWR42Zs9MRTFOTf6ahIXhZTcwAdOeU,1082
218
- plotnine-0.15.1.dist-info/METADATA,sha256=rDMZR95-O9S5B-0Qpcbds6L6FmF6-ojjx3PpvVDgFaA,9496
219
- plotnine-0.15.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
220
- plotnine-0.15.1.dist-info/top_level.txt,sha256=t340Mbko1ZbmvYPkQ81dIiPHcaQdTUszYz-bWUpr8ys,9
221
- plotnine-0.15.1.dist-info/RECORD,,
217
+ plotnine-0.15.2.dist-info/licenses/LICENSE,sha256=GY4tQiUd17Tq3wWR42Zs9MRTFOTf6ahIXhZTcwAdOeU,1082
218
+ plotnine-0.15.2.dist-info/METADATA,sha256=6rfWJx86I1xMM0eZJr6H2_DHNvszjGkwooBt0BhMMoE,9496
219
+ plotnine-0.15.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
220
+ plotnine-0.15.2.dist-info/top_level.txt,sha256=t340Mbko1ZbmvYPkQ81dIiPHcaQdTUszYz-bWUpr8ys,9
221
+ plotnine-0.15.2.dist-info/RECORD,,