Skip to content

Commit 4619417

Browse files
authored
Update versions and expose in documentation (#7447)
1 parent 173464f commit 4619417

File tree

13 files changed

+78
-30
lines changed

13 files changed

+78
-30
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ This release brings a wide range of new features, enhancements, and compatibilit
4242

4343
### 📦 Compatibility & Infrastructure
4444

45+
- Update component versions ([#7447](https://github.com/holoviz/panel/pull/7447))
46+
- `DeckGL` version from 9.0.20 to 9.1.14
47+
- `ECharts` version from 5.6.0 to 6.0.0
48+
- `KaTeX` version from 0.6.0 to 0.16.22
49+
- `Perspective` version from 3.7.4 to 3.8.0
50+
- `Plotly` version from 3.0.1 to 3.1.0
51+
- `Vega` version from 5 to 6.1.2 and vega-lite dependency from 5 to 6.3.0
52+
- `Vizzu` version from 0.15 to 0.17.1
4553
- Drop support for Bokeh 3.5 and 3.6 ([#8116](https://github.com/holoviz/panel/pull/8116))
4654
- Full compatibility with **Bokeh 3.8** ([#8160](https://github.com/holoviz/panel/pull/8160))
4755

doc/about/releases.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ This release brings a wide range of new features, enhancements, and compatibilit
4444

4545
### 📦 Compatibility & Infrastructure
4646

47+
- Update component versions ([#7447](https://github.com/holoviz/panel/pull/7447))
48+
- `DeckGL` version from 9.0.20 to 9.1.14
49+
- `ECharts` version from 5.6.0 to 6.0.0
50+
- `KaTeX` version from 0.6.0 to 0.16.22
51+
- `Perspective` version from 3.7.4 to 3.8.0
52+
- `Plotly` version from 3.0.1 to 3.1.0
53+
- `Vega` version from 5 to 6.1.2 and vega-lite dependency from 5 to 6.3.0
54+
- `Vizzu` version from 0.15 to 0.17.1
4755
- Drop support for Bokeh 3.5 and 3.6 ([#8116](https://github.com/holoviz/panel/pull/8116))
4856
- Full compatibility with **Bokeh 3.8** ([#8160](https://github.com/holoviz/panel/pull/8160))
4957

doc/conf.py

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,18 +263,36 @@ def _get_pyodide_version():
263263
raise NotImplementedError(F"{PYODIDE_VERSION=} is not valid")
264264

265265
def update_versions(app, docname, source):
266+
from panel.models.deckgl import DECKGL_VERSION
267+
from panel.models.echarts import ECHARTS_VERSION
268+
from panel.models.katex import KATEX_VERSION
269+
from panel.models.mathjax import MATHJAX_VERSION
270+
from panel.models.perspective import PERSPECTIVE_VERSION
271+
from panel.models.plotly import PLOTLY_VERSION
266272
from panel.models.tabulator import TABULATOR_VERSION
273+
from panel.models.vega import VEGA_LITE_VERSION, VEGA_VERSION
267274
from panel.models.vizzu import VIZZU_VERSION
275+
from panel.models.vtk import VTK_VERSION
268276

269277
# Inspired by: https://stackoverflow.com/questions/8821511
270278
version_replace = {
271-
"{{PANEL_VERSION}}" : PY_VERSION,
272-
"{{BOKEH_VERSION}}" : BOKEH_VERSION,
273-
"{{PYSCRIPT_VERSION}}" : PYSCRIPT_VERSION,
274-
"{{PYODIDE_VERSION}}" : _get_pyodide_version(),
275-
"{{TABULATOR_VERSION}}" : TABULATOR_VERSION,
279+
"{{PANEL_VERSION}}": PY_VERSION,
280+
"{{BOKEH_VERSION}}": BOKEH_VERSION,
281+
"{{PYSCRIPT_VERSION}}": PYSCRIPT_VERSION,
282+
"{{PYODIDE_VERSION}}": _get_pyodide_version(),
283+
"{{ALTAIR_VERSION}}": ALTAIR_VERSION,
284+
"{{DECKGL_VERSION}}": DECKGL_VERSION,
285+
"{{ECHARTS_VERSION}}": ECHARTS_VERSION,
286+
"{{KATEX_VERSION}}": KATEX_VERSION,
287+
"{{MATHJAX_VERSION}}": MATHJAX_VERSION,
288+
"{{PERSPECTIVE_VERSION}}": PERSPECTIVE_VERSION,
289+
"{{PLOTLY_VERSION}}": PLOTLY_VERSION,
290+
"{{TABULATOR_VERSION}}": TABULATOR_VERSION,
276291
"{{TABULATOR_VERSION_WWW}}" : ".".join(TABULATOR_VERSION.split(".")[:2]),
277-
"{{VIZZU_VERSION}}" : VIZZU_VERSION,
292+
"{{VEGA_VERSION}}": VEGA_VERSION,
293+
"{{VEGA_VERSION}}": VEGA_LITE_VERSION,
294+
"{{VIZZU_VERSION}}": VIZZU_VERSION,
295+
"{{VTK_VERSION}}": VTK_VERSION,
278296
}
279297

280298
for old, new in version_replace.items():

panel/models/deckgl.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
from ..util import classproperty
2020
from .layout import HTMLBox
2121

22+
DECKGL_VERSION = "9.1.14"
23+
2224

2325
class DeckGLPlot(HTMLBox):
2426
"""A Bokeh model that wraps around a DeckGL plot and renders it inside a HTMLBox"""
@@ -34,14 +36,14 @@ def __css__(cls):
3436

3537
__javascript_raw__ = [
3638
f"{config.npm_cdn}/h3-js@4.1.0/dist/h3-js.umd.js",
37-
f"{config.npm_cdn}/deck.gl@9.0.20/dist.min.js",
38-
f"{config.npm_cdn}/@deck.gl/json@9.0.20/dist.min.js",
39+
f"{config.npm_cdn}/deck.gl@{DECKGL_VERSION}/dist.min.js",
40+
f"{config.npm_cdn}/@deck.gl/json@{DECKGL_VERSION}/dist.min.js",
3941
f"{config.npm_cdn}/@loaders.gl/csv@4.2.2/dist/dist.min.js",
4042
f"{config.npm_cdn}/@loaders.gl/json@4.2.2/dist/dist.min.js",
4143
f"{config.npm_cdn}/@loaders.gl/3d-tiles@4.2.2/dist/dist.min.js",
4244
"https://api.mapbox.com/mapbox-gl-js/v3.0.1/mapbox-gl.js",
4345
f"{config.npm_cdn}/maplibre-gl/dist/maplibre-gl.js",
44-
f"{config.npm_cdn}/@deck.gl/carto@^9.0.20/dist.min.js"
46+
f"{config.npm_cdn}/@deck.gl/carto@^{DECKGL_VERSION}/dist.min.js"
4547
]
4648

4749
@classproperty
@@ -58,13 +60,13 @@ def __js_skip__(cls):
5860
__js_require__ = {
5961
'paths': {
6062
"h3": f"{config.npm_cdn}/h3-js@4.1.0/dist/h3-js.umd",
61-
"deck-gl": f"{config.npm_cdn}/deck.gl@9.0.20/dist.min",
62-
"deck-json": f"{config.npm_cdn}/@deck.gl/json@9.0.20/dist.min",
63+
"deck-gl": f"{config.npm_cdn}/deck.gl@{DECKGL_VERSION}/dist.min",
64+
"deck-json": f"{config.npm_cdn}/@deck.gl/json@{DECKGL_VERSION}/dist.min",
6365
"loader-csv": f"{config.npm_cdn}/@loaders.gl/csv@4.2.2/dist/dist.min",
6466
"loader-json": f"{config.npm_cdn}/@loaders.gl/json@4.2.2/dist/dist.min",
6567
"loader-tiles": f"{config.npm_cdn}/@loaders.gl/3d-tiles@4.2.2/dist/dist.min",
6668
"mapbox-gl": "https://api.mapbox.com/mapbox-gl-js/v3.0.1/mapbox-gl",
67-
"carto": f"{config.npm_cdn}/@deck.gl/carto@^9.0.20/dist.min",
69+
"carto": f"{config.npm_cdn}/@deck.gl/carto@^{DECKGL_VERSION}/dist.min",
6870
},
6971
'exports': {"deck-gl": "deck", "mapbox-gl": "mapboxgl", "h3": "h3"},
7072
'shim': {

panel/models/echarts.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
from ..io.resources import bundled_files
1212
from ..util import classproperty
1313

14+
ECHARTS_VERSION = "6.0.0"
15+
1416

1517
class EChartsEvent(ModelEvent):
1618

@@ -30,7 +32,7 @@ class ECharts(LayoutDOM):
3032
"""
3133

3234
__javascript_raw__ = [
33-
f"{config.npm_cdn}/echarts@5.6.0/dist/echarts.min.js",
35+
f"{config.npm_cdn}/echarts@{ECHARTS_VERSION}/dist/echarts.min.js",
3436
f"{config.npm_cdn}/echarts-gl@2.0.9/dist/echarts-gl.min.js"
3537
]
3638

@@ -46,7 +48,7 @@ def __js_skip__(cls):
4648

4749
__js_require__ = {
4850
'paths': {
49-
"echarts": f"{config.npm_cdn}/echarts@5.6.0/dist/echarts.min",
51+
"echarts": f"{config.npm_cdn}/echarts@{ECHARTS_VERSION}/dist/echarts.min",
5052
"echarts-gl": f"{config.npm_cdn}/echarts-gl@2.0.9/dist/echarts-gl.min"
5153
},
5254
'exports': {}

panel/models/katex.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@
55

66
from ..config import config
77

8+
KATEX_VERSION = "0.16.22"
9+
810

911
class KaTeX(Markup):
1012
"""
1113
A bokeh model that renders text using KaTeX.
1214
"""
1315

14-
__css__ = ["https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.css"]
16+
__css__ = [f"{config.npm_cdn}/katex@{KATEX_VERSION}/dist/katex.min.css"]
1517

1618
__javascript__ = [
17-
"https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.js",
18-
f"{config.npm_cdn}/katex@0.10.1/dist/contrib/auto-render.min.js"
19+
f"{config.npm_cdn}/katex@{KATEX_VERSION}/dist/katex.min.js",
20+
f"{config.npm_cdn}/katex@{KATEX_VERSION}/dist/contrib/auto-render.min.js"
1921
]
2022

2123
__js_skip__ = {
@@ -25,8 +27,8 @@ class KaTeX(Markup):
2527

2628
__js_require__ = {
2729
'paths': {
28-
'katex': "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min",
29-
'autoLoad': f"{config.npm_cdn}/katex@0.10.1/dist/contrib/auto-render.min"
30+
'katex': f"{config.npm_cdn}/katex@{KATEX_VERSION}/dist/katex.min",
31+
'autoLoad': f"{config.npm_cdn}/katex@{KATEX_VERSION}/dist/contrib/auto-render.min"
3032
},
3133
'exports': {'katex': 'katex', 'autoLoad': 'renderMathInElement'}
3234
}

panel/models/perspective.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'pro', 'pro-dark', 'gruvbox', 'gruvbox-dark',
1515
]
1616

17-
PERSPECTIVE_VERSION = '3.7.4'
17+
PERSPECTIVE_VERSION = '3.8.0'
1818

1919
THEME_PATH = f"@finos/perspective-viewer@{PERSPECTIVE_VERSION}/dist/css/"
2020
THEME_URL = f"{config.npm_cdn}/{THEME_PATH}"

panel/models/plotly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ..io.resources import bundled_files
1212
from ..util import classproperty
1313

14-
PLOTLY_VERSION = '3.0.1'
14+
PLOTLY_VERSION = '3.1.0'
1515

1616

1717
class PlotlyEvent(ModelEvent):

panel/models/vega.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
from ..io.resources import bundled_files
1717
from ..util import classproperty
1818

19+
VEGA_VERSION = "6.1.2"
20+
VEGA_LITE_VERSION = "6.3.0"
21+
VEGA_EMBED_VERSION = "7.0.2"
22+
1923
VegaThemeType = Literal[
2024
'excel', 'ggplot2', 'quartz', 'vox', 'fivethirtyeight', 'dark',
2125
'latimes', 'urbaninstitute', 'googlecharts', 'powerbi', 'carbonwhite', 'carbong10', 'carbong90', 'carbong100']
@@ -37,9 +41,9 @@ class VegaPlot(LayoutDOM):
3741
"""
3842

3943
__javascript_raw__ = [
40-
f"{config.npm_cdn}/vega@5",
41-
f"{config.npm_cdn}/vega-lite@5",
42-
f"{config.npm_cdn}/vega-embed@6"
44+
f"{config.npm_cdn}/vega@{VEGA_VERSION}",
45+
f"{config.npm_cdn}/vega-lite@{VEGA_LITE_VERSION}",
46+
f"{config.npm_cdn}/vega-embed@{VEGA_EMBED_VERSION}"
4347
]
4448

4549
@classproperty
@@ -56,9 +60,9 @@ def __js_skip__(cls):
5660

5761
__js_require__ = {
5862
'paths': {
59-
"vega-embed": f"{config.npm_cdn}/vega-embed@6/build/vega-embed.min",
60-
"vega-lite": f"{config.npm_cdn}/vega-lite@5/build/vega-lite.min",
61-
"vega": f"{config.npm_cdn}/vega@5/build/vega.min"
63+
"vega-embed": f"{config.npm_cdn}/vega-embed@{VEGA_EMBED_VERSION}/build/vega-embed.min",
64+
"vega-lite": f"{config.npm_cdn}/vega-lite@{VEGA_LITE_VERSION}/build/vega-lite.min",
65+
"vega": f"{config.npm_cdn}/vega@{VEGA_VERSION}/build/vega.min"
6266
},
6367
'exports': {'vega-embed': 'vegaEmbed', 'vega': 'vega', 'vega-lite': 'vl'}
6468
}

panel/models/vizzu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ..config import config
1212
from ..util import classproperty
1313

14-
VIZZU_VERSION = "0.15"
14+
VIZZU_VERSION = "0.17.1"
1515

1616
class VizzuEvent(ModelEvent):
1717

0 commit comments

Comments
 (0)