Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest holoviews and panel incompatibility #5675

Closed
basnijholt opened this issue Apr 7, 2023 · 2 comments
Closed

latest holoviews and panel incompatibility #5675

basnijholt opened this issue Apr 7, 2023 · 2 comments

Comments

@basnijholt
Copy link
Contributor

basnijholt commented Apr 7, 2023

I have just created a fresh environment without pinning any versions, which then results in:

name: adaptive-docs

channels:
  - conda-forge

dependencies:
  - python=3.11.3
  - sortedcollections=2.1.0
  - scikit-optimize=0.9.0
  - scikit-learn=1.2.2
  - scipy=1.10.1
  - holoviews=1.15.4
  - bokeh=2.4.3
  - panel=0.14.4
  - pandas=2.0.0
  - plotly=5.14.1
  - ipywidgets=8.0.6
  - myst-nb=0.17.1
  - sphinx_fontawesome=0.0.6
  - sphinx=5.3.0
  - ffmpeg=5.1.2
  - cloudpickle=2.2.1
  - loky=3.3.0
  - furo=2023.3.27
  - myst-parser=0.18.1
  - dask=2023.3.2

I am still getting this error in Jupyter notebook classic.

Javascript error adding output!
SyntaxError: Unexpected identifier 'unable'
See your browser Javascript console for more details.

after running

import holoviews
holoviews.notebook_extension("bokeh")

Running it again results in:

Javascript error adding output!
SyntaxError: missing ) after argument list
See your browser Javascript console for more details.

Downgrading to panel 0.13.1 makes it work.

This was reported earlier in this closed issue #4875 (comment).

ref: python-adaptive/adaptive#396

@basnijholt
Copy link
Contributor Author

Oh, it turns out that this broke because of my ~/.jupyter/custom/custom.js which I have used for >4 years:

require(["codemirror/keymap/sublime", "notebook/js/cell", "base/js/namespace"],
    function(sublime_keymap, cell, IPython) {
        // setTimeout(function(){ // uncomment line to fake race-condition
        cell.Cell.options_default.cm_config.keyMap = 'sublime';
        var cells = IPython.notebook.get_cells();
        for(var cl=0; cl< cells.length ; cl++){
            cells[cl].code_mirror.setOption('keyMap', 'sublime');
        }
 
        // }, 1000)// uncomment  line to fake race condition 
    } 
);


// default is 30s, increase to 1 minute
window.requirejs.config({waitseconds: 60});

Removing that fixes the issue.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant