Skip to content

Commit

Permalink
Use bokeh 3.0 (#2356)
Browse files Browse the repository at this point in the history
* Try bokeh 3

* dependency related fixes

* update bokeh pin for docs

* black
  • Loading branch information
OriolAbril authored Jun 24, 2024
1 parent 39eddd6 commit 288a629
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
displayName: 'Install base requirements'
- script: |
python -m pip install --no-cache-dir --pre -r requirements-optional.txt
python -m pip install --no-cache-dir -r requirements-optional.txt
condition: and(succeeded(), eq(variables.OptionalRequirements, true))
displayName: 'Install optional requirements'
Expand Down
8 changes: 2 additions & 6 deletions arviz/plots/backends/bokeh/pairplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,8 @@ def plot_pair(
source = ColumnDataSource(data=source_dict)

if divergences:
source_nondiv = CDSView(
source=source, filters=[GroupFilter(column_name=divergenve_name, group="0")]
)
source_div = CDSView(
source=source, filters=[GroupFilter(column_name=divergenve_name, group="1")]
)
source_nondiv = CDSView(filters=[GroupFilter(column_name=divergenve_name, group="0")])
source_div = CDSView(filters=[GroupFilter(column_name=divergenve_name, group="1")])

def get_width_and_height(jointplot, rotate):
"""Compute subplots dimensions for two or more variables."""
Expand Down
2 changes: 1 addition & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ myst-parser
myst-nb
sphinx-notfound-page
sphinx-copybutton
bokeh<3
bokeh>=3
contourpy
sphinx_design
sphinx-codeautolink>=0.9.0
Expand Down
4 changes: 2 additions & 2 deletions requirements-optional.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
numba
netcdf4
bokeh>=1.4.0,<3.0
bokeh>=3
contourpy
ujson
dask[distributed]
zarr>=2.5.0
zarr>=2.5.0,<3
xarray-datatree

0 comments on commit 288a629

Please sign in to comment.