Skip to content

Commit a797b16

Browse files
authored
Merge branch 'plotly:master' into reno
2 parents 05ad110 + 45fb373 commit a797b16

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/publish_testpypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
runs-on: ubuntu-latest
8989
environment:
9090
name: testpypi
91-
url: https://test.pypi.org/p/kaleido_test
91+
url: https://test.pypi.org/p/kaleido
9292
# Signs this workflow so pypi trusts it
9393
permissions:
9494
id-token: write
@@ -100,7 +100,7 @@ jobs:
100100
with:
101101
python-version-file: "./src/py/pyproject.toml"
102102
- run: git checkout ${{ github.ref_name }}
103-
- run: uv sync --no-sources --frozen --all-extras
103+
- run: uv sync --frozen --all-extras
104104
- run: uv build
105105
- name: Publish package distributions to PyPI
106106
uses: pypa/gh-action-pypi-publish@release/v1

src/py/CHANGELOG.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
1+
v1.0.0rc14
2+
- Pass `plotlyjs` option through from Kaleido() to PageGenerator()
3+
14
v1.0.0rc13
25
- Pass mathjax option through when using default plotly.js template
6+
37
v1.0.0rc12
48
- Add `kopts` args to top-level shortcuts to pass args to `Kaleido(**kopts)`
9+
510
v1.0.0rc11
611
- Write mocker tool to parameterize opts in tests
712
- Crop page to pdf size
813
- Add type checks to user input for improved error messages
914
- Fix latex strings in PDF bolding
1015
- Add some choreographer errors to kaleido.errors
16+
1117
v1.0.0rc10
1218
- Allow user to pass Figure-like dicts
1319
- Fix bug by which calc fig rejected plotly figures
1420
- Improve testing
21+
1522
v1.0.0rc9
1623
- Fix v1.0.0rc7 for logic reversal (was conditional error)
24+
1725
v1.0.0rc8
1826
- Add kaleido.calc_fig to return bytes, not write file automatically
1927
- Add calc_fig[_sync], write_fig_sync, and write_fig_from_object_sync to kaleido API
28+
2029
v1.0.0rc7
2130
- Use new choreo is_isolated() to improve platform support (snap /tmp sandboxing)
31+
2232
v1.0.0rc6
2333
- Allow PageGenerator(force_cdn=True) to not use plotly.py's installed js
34+
2435
v1.0.0rc5
2536
- Fix bug by which plotly.py's internal js was always ignored
2637
- Adds testing for PageGenerator

src/py/kaleido/kaleido.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def __init__(self, *args, **kwargs): # noqa: D417 no args/kwargs in description
106106
self._height = kwargs.pop("height", None)
107107
self._width = kwargs.pop("width", None)
108108
self._stepper = kwargs.pop("stepper", False)
109+
self._plotlyjs = kwargs.pop("plotlyjs", None)
109110
self._mathjax = kwargs.pop("mathjax", None)
110111
if not kwargs.get("headless", True) and (self._height or self._width):
111112
warnings.warn(
@@ -136,7 +137,7 @@ def __init__(self, *args, **kwargs): # noqa: D417 no args/kwargs in description
136137
index = self.tmp_dir.path / "index.html"
137138
self._index = index.as_uri()
138139
if not page:
139-
page = PageGenerator(mathjax=self._mathjax)
140+
page = PageGenerator(plotly=self._plotlyjs, mathjax=self._mathjax)
140141
page.generate_index(index)
141142

142143
async def _conform_tabs(self, tabs=None) -> None:

0 commit comments

Comments
 (0)