Skip to content

Instantly share code, notes, and snippets.

@bryevdv
Created August 11, 2026 15:49
Show Gist options
  • Select an option

  • Save bryevdv/abc9b114601976f47639d51f70dee2dc to your computer and use it in GitHub Desktop.

Select an option

Save bryevdv/abc9b114601976f47639d51f70dee2dc to your computer and use it in GitHub Desktop.
Bokeh 3.10.0 adapted backport range diffs
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Bokeh PR #15310 — dual-color range diff</title>
<style>
:root { color-scheme: light; }
body {
margin: 0;
background: #ffffff;
color: #1f2328;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
header {
padding: 16px 20px;
border-bottom: 1px solid #d0d7de;
font-family: system-ui, sans-serif;
}
h1 { margin: 0 0 6px; font-size: 18px; }
p { margin: 0; color: #57606a; font-size: 14px; }
a { color: #0969da; }
.binary-notice {
margin: 16px 20px 0;
padding: 12px 14px;
border: 1px solid #d4a72c;
border-radius: 6px;
background: #fff8c5;
font: 14px/1.45 system-ui, sans-serif;
}
.binary-notice strong { display: block; margin-bottom: 4px; }
.binary-notice ul { margin: 6px 0 0; padding-left: 24px; }
.binary-notice code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.diff-added { background: rgb(26 127 55 / 10%); }
.diff-removed { background: rgb(207 34 46 / 10%); }
pre {
margin: 0;
padding: 20px;
overflow: auto;
font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
tab-size: 8;
}
</style>
</head>
<body>
<header>
<h1>Bokeh PR #15310 — dual-color range diff</h1>
<p>
<a href="https://github.com/bokeh/bokeh/commit/9e01f31ee8e45b47ad1e87d61bd82db1df2bc227">original</a>
<a href="https://github.com/bokeh/bokeh/commit/594bb5f092f60b5c0777ff7d499bc21f45b263d0">backport</a>
</p>
</header>
<pre><code><span style="color: #cf222e; text-decoration-color: #cf222e; font-weight: bold">1: 9e01f31ee8 </span><span style="color: #9a6700; text-decoration-color: #9a6700; font-weight: bold">!</span><span style="color: #1a7f37; text-decoration-color: #1a7f37; font-weight: bold"> 1: 594bb5f092</span><span style="color: #9a6700; text-decoration-color: #9a6700; font-weight: bold"> Don&#x27;t use mypy&#x27;s caching in CI (#15310)</span>
<span style="background-color: #fbefff; color: #8250df; font-weight: bold">@@</span> <span style="color: #afafd7; text-decoration-color: #afafd7; font-weight: bold">Metadata</span>
## Commit message ##
Don&#x27;t use mypy&#x27;s caching in CI (#15310)
<span class="diff-added"> <span style="background-color: #dafbe1; color: #1a7f37; font-weight: bold">+</span><span style="font-weight: bold"> (cherry picked from commit 9e01f31ee8e45b47ad1e87d61bd82db1df2bc227)</span></span>
<span class="diff-added"> <span style="background-color: #dafbe1; color: #1a7f37; font-weight: bold">+</span></span>
## .github/workflows/bokeh-ci-full.yml ##
<span style="color: #8250df; text-decoration-color: #8250df; font-weight: bold"> @@ .github/workflows/bokeh-ci-full.yml: jobs:</span>
- name: Check library types with mypy
<span style="background-color: #fbefff; color: #8250df; font-weight: bold">@@</span> <span style="color: #afafd7; text-decoration-color: #afafd7; font-weight: bold">.github/workflows/bokeh-ci-full.yml: jobs:</span>
mypy --version
<span class="diff-removed"> <span style="color: #cf222e; text-decoration-color: #cf222e; font-weight: bold"> - mypy --show-traceback</span></span>
<span class="diff-added"> <span style="color: #1a7f37; text-decoration-color: #1a7f37; font-weight: bold"> + mypy --no-sqlite-cache --show-traceback</span></span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #8f9193; text-decoration-color: #8f9193"> - name: Check types in examples with mypy</span></span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #8f9193; text-decoration-color: #8f9193"> run: |</span></span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #8f9193; text-decoration-color: #8f9193"> mypy --version</span></span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #e79096; text-decoration-color: #e79096">- mypy --show-traceback --config-file examples/mypy.cfg examples/basic/scatters/color_scatter.py</span></span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #8cbf9b; text-decoration-color: #8cbf9b">+ mypy --no-sqlite-cache --show-traceback --config-file examples/mypy.cfg examples/basic/scatters/color_scatter.py</span></span>
- name: Check library types with pyright
run: |
pyright --version
<span style="background-color: #fbefff; color: #8250df; font-weight: bold">@@</span> <span style="color: #afafd7; text-decoration-color: #afafd7; font-weight: bold">.github/workflows/bokeh-ci.yml: jobs:</span>
<span class="diff-removed"> <span style="color: #cf222e; text-decoration-color: #cf222e; font-weight: bold"> - mypy --version &amp;&amp; mypy</span></span>
<span class="diff-added"> <span style="color: #1a7f37; text-decoration-color: #1a7f37; font-weight: bold"> + mypy --version</span></span>
<span class="diff-added"> <span style="color: #1a7f37; text-decoration-color: #1a7f37; font-weight: bold"> + mypy --no-sqlite-cache --show-traceback</span></span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #8f9193; text-decoration-color: #8f9193"> - name: Check types in examples with mypy</span></span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #8f9193; text-decoration-color: #8f9193"> run: |</span></span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #e79096; text-decoration-color: #e79096">- mypy --version &amp;&amp; mypy --config-file examples/mypy.cfg examples/basic/scatters/color_scatter.py</span></span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #8cbf9b; text-decoration-color: #8cbf9b">+ mypy --version</span></span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #8cbf9b; text-decoration-color: #8cbf9b">+ mypy --no-sqlite-cache --show-traceback --config-file examples/mypy.cfg examples/basic/scatters/color_scatter.py</span></span>
- name: Check library types with pyright
run: |
pyright --version &amp;&amp; pyright</code></pre>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Bokeh PR #15323 — dual-color range diff</title>
<style>
:root { color-scheme: light; }
body {
margin: 0;
background: #ffffff;
color: #1f2328;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
header {
padding: 16px 20px;
border-bottom: 1px solid #d0d7de;
font-family: system-ui, sans-serif;
}
h1 { margin: 0 0 6px; font-size: 18px; }
p { margin: 0; color: #57606a; font-size: 14px; }
a { color: #0969da; }
.binary-notice {
margin: 16px 20px 0;
padding: 12px 14px;
border: 1px solid #d4a72c;
border-radius: 6px;
background: #fff8c5;
font: 14px/1.45 system-ui, sans-serif;
}
.binary-notice strong { display: block; margin-bottom: 4px; }
.binary-notice ul { margin: 6px 0 0; padding-left: 24px; }
.binary-notice code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.diff-added { background: rgb(26 127 55 / 10%); }
.diff-removed { background: rgb(207 34 46 / 10%); }
pre {
margin: 0;
padding: 20px;
overflow: auto;
font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
tab-size: 8;
}
</style>
</head>
<body>
<header>
<h1>Bokeh PR #15323 — dual-color range diff</h1>
<p>
<a href="https://github.com/bokeh/bokeh/commit/cfa27924b09776f94e1c7e2054e723c930679e4e">original</a>
<a href="https://github.com/bokeh/bokeh/commit/754108563d782d8c6c7ecb38f2b8a4963ba87966">backport</a>
</p>
</header>
<pre><code><span style="color: #cf222e; text-decoration-color: #cf222e; font-weight: bold">1: cfa27924b0 </span><span style="color: #9a6700; text-decoration-color: #9a6700; font-weight: bold">!</span><span style="color: #1a7f37; text-decoration-color: #1a7f37; font-weight: bold"> 1: 754108563d</span><span style="color: #9a6700; text-decoration-color: #9a6700; font-weight: bold"> Regression test for fitting rounded numbers in DataTable (#15323)</span>
<span style="background-color: #fbefff; color: #8250df; font-weight: bold">@@</span> <span style="color: #afafd7; text-decoration-color: #afafd7; font-weight: bold">Commit message</span>
* fix viewport
<span class="diff-added"> <span style="background-color: #dafbe1; color: #1a7f37; font-weight: bold">+</span><span style="font-weight: bold"> (cherry picked from commit cfa27924b09776f94e1c7e2054e723c930679e4e)</span></span>
<span class="diff-added"> <span style="background-color: #dafbe1; color: #1a7f37; font-weight: bold">+</span></span>
## bokehjs/test/baselines/linux/Bug__in_issue_#11436__doesn&#x27;t_fit_column_to_rounded_number_in_DataTable_with_autosize_mode=&#x27;fit_viewport&#x27;.blf (new) ##
<span style="color: #8250df; text-decoration-color: #8250df; font-weight: bold"> @@</span>
<span class="diff-added"> <span style="color: #1a7f37; text-decoration-color: #1a7f37; font-weight: bold"> +DataTable bbox=[0, 0, 316, 400]</span></span>
<span style="background-color: #fbefff; color: #8250df; font-weight: bold">@@</span> <span style="color: #afafd7; text-decoration-color: #afafd7; font-weight: bold">bokehjs/test/integration/regressions.ts: import {</span>
import type {Factor} from &quot;@bokehjs/models/ranges/factor_range&quot;
<span style="color: #8250df; text-decoration-color: #8250df; font-weight: bold"> @@ bokehjs/test/integration/regressions.ts: describe(&quot;Bug&quot;, () =&gt; {</span>
<span class="diff-removed"> <span style="background-color: #ffebe9; color: #cf222e; font-weight: bold">-</span><span style="color: #8f9193; text-decoration-color: #8f9193"> ).to.be.true</span></span>
<span class="diff-added"> <span style="background-color: #dafbe1; color: #1a7f37; font-weight: bold">+</span><span style="font-weight: bold"> await display(table, [1000, 250])</span></span>
})
})
<span class="diff-added"> <span style="color: #1a7f37; text-decoration-color: #1a7f37; font-weight: bold"> +</span></code></pre></span>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment