Skip to content

Commit 218a91f

Browse files
authored
Merge pull request ipython-contrib#1617 from stanwest/collapsible_headings_jupyter_version
In Collapsible Headings, get notebook version from sys_info if possible
2 parents 8ef0c1e + df5d034 commit 218a91f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ readthedocs stuff gets all the shiny link goodness. Thanks!
1717

1818
Unreleased (aka. GitHub master)
1919
-------------------------------
20+
21+
- In *Collapsible Headings*, get the notebook version from `sys_info` if possible, resolving an incompatibility with *notebook* versions 6.5.x [#1617](https://github.com/ipython-contrib/jupyter_contrib_nbextensions/pull/1617).
22+
2023
0.7.0
2124
-----
2225

src/jupyter_contrib_nbextensions/nbextensions/collapsible_headings/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@
595595
* @return {Promise}
596596
*/
597597
function patch_Tooltip () {
598-
if (Number(Jupyter.version[0]) >= 5) {
598+
if (Number(((sys_info) ? sys_info.notebook_version : Jupyter.version).split(".")[0]) >= 5) {
599599
return Promise.resolve();
600600
}
601601
return new Promise(function (resolve, reject) {

0 commit comments

Comments
 (0)